method
pluck
Ruby on Rails latest stable (v6.1.7.7)
-
0 notes -
Class: ActionView::Helpers::JavaScriptCollectionProxy
pluck(variable, property)
public
Hide source
# File actionpack/lib/action_view/helpers/prototype_helper.rb, line 781 def pluck(variable, property) add_variable_assignment!(variable) append_enumerable_function!("pluck(#{::ActiveSupport::JSON.encode(property)});") end