Exception: Upfluence::Mixin::StrongParameters::UnpermittedParameters

Inherits:
IndexError
  • Object
show all
Defined in:
lib/upfluence/mixin/strong_parameters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#paramsObject (readonly)

Returns the value of attribute params.



14
15
16
# File 'lib/upfluence/mixin/strong_parameters.rb', line 14

def params
  @params
end