instance method
compact!
Ruby on Rails 6.1.7.10
Since v6.1.7.10Signature
compact!()
Removes all nil values in place and returns self, or nil if no changes were made.
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 796
def compact!
self if @parameters.compact!
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 796
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters