class ActionController::Parameters

def compact!

Removes all +nil+ values in place and returns +self+, or +nil+ if no changes were made.
def compact!
  self if @parameters.compact!
end