instance method
reject
Ruby on Rails 5.1.7
Since v5.0.7.2Signature
reject(&block)
Returns a new instance of ActionController::Parameters with items that the block evaluates to true removed.
Parameters
-
blockblock
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 695
def reject(&block)
new_instance_with_inherited_permitted_status(@parameters.reject(&block))
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 695
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters