class ActionController::Parameters

def select(&block)

items that the block evaluates to true.
Returns a new instance of ActionController::Parameters with only
def select(&block)
  new_instance_with_inherited_permitted_status(@parameters.select(&block))
end