Exception: Upfluence::Mixin::StrongParameters::ParameterMissing

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param) ⇒ ParameterMissing

Returns a new instance of ParameterMissing.



7
8
9
10
# File 'lib/upfluence/mixin/strong_parameters.rb', line 7

def initialize(param)
  @param = param
  super("param is missing or the value is empty: #{param}")
end

Instance Attribute Details

#paramObject (readonly)

Returns the value of attribute param.



5
6
7
# File 'lib/upfluence/mixin/strong_parameters.rb', line 5

def param
  @param
end