Exception: Upfluence::Mixin::StrongParameters::UnpermittedParameters
- Inherits:
-
IndexError
- Object
- IndexError
- Upfluence::Mixin::StrongParameters::UnpermittedParameters
- Defined in:
- lib/upfluence/mixin/strong_parameters.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(params) ⇒ UnpermittedParameters
constructor
A new instance of UnpermittedParameters.
Constructor Details
#initialize(params) ⇒ UnpermittedParameters
Returns a new instance of UnpermittedParameters.
16 17 18 19 |
# File 'lib/upfluence/mixin/strong_parameters.rb', line 16 def initialize(params) @params = params super("found unpermitted parameters: #{params.join(", ")}") end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
14 15 16 |
# File 'lib/upfluence/mixin/strong_parameters.rb', line 14 def params @params end |