class ActionController::Parameters

def permitted?

params.permitted? # => true
params.permit!
params.permitted? # => false
params = ActionController::Parameters.new

Returns +true+ if the parameter is permitted, +false+ otherwise.
def permitted?
  @permitted
end