method
pluck
Ruby on Rails latest stable (v7.1.3.2)
-
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