Exception: ActionController::ParameterForbidden

Inherits:
IndexError
  • Object
show all
Defined in:
lib/action_controller/parameters.rb,
lib/action_controller/strict_parameters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param) ⇒ ParameterForbidden

Returns a new instance of ParameterForbidden.



18
19
20
21
# File 'lib/action_controller/parameters.rb', line 18

def initialize(param)
  @param = param
  super("key forbidden: #{param}")
end

Instance Attribute Details

#paramObject (readonly)

Returns the value of attribute param.



16
17
18
# File 'lib/action_controller/parameters.rb', line 16

def param
  @param
end