Class: ActiveFunction::Functions::StrongParameters::Parameters::UnpermittedParameterError

Inherits:
Error
  • Object
show all
Defined in:
lib/active_function/functions/strong_parameters.rb

Constant Summary collapse

MESSAGE_TEMPLATE =
"Unpermitted parameter: %s"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param) ⇒ UnpermittedParameterError

Returns a new instance of UnpermittedParameterError.



48
49
50
# File 'lib/active_function/functions/strong_parameters.rb', line 48

def initialize(param)
  MESSAGE_TEMPLATE % param
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



46
47
48
# File 'lib/active_function/functions/strong_parameters.rb', line 46

def message
  @message
end