Method: ActionController::Parameters#select
- Defined in:
- lib/action_controller/metal/strong_parameters.rb
#select(&block) ⇒ Object
Returns a new ActionController::Parameters instance with only items that the block evaluates to true.
948 949 950 |
# File 'lib/action_controller/metal/strong_parameters.rb', line 948 def select(&block) new_instance_with_inherited_permitted_status(@parameters.select(&block)) end |