Class: ActiveFunction::Functions::StrongParameters::Parameters::UnpermittedParameterError
- Inherits:
-
Error
- Object
- ActiveFunction::Functions::StrongParameters::Parameters::UnpermittedParameterError
- Defined in:
- lib/active_function/functions/strong_parameters.rb
Constant Summary collapse
- MESSAGE_TEMPLATE =
"Unpermitted parameter: %s"
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(param) ⇒ UnpermittedParameterError
constructor
A new instance of UnpermittedParameterError.
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
#message ⇒ Object (readonly)
Returns the value of attribute message.
46 47 48 |
# File 'lib/active_function/functions/strong_parameters.rb', line 46 def @message end |