Exception: Sinatra::StrongParameters::ParameterMissing

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sinatra/strong_parameters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param) ⇒ ParameterMissing

Returns a new instance of ParameterMissing.



26
27
28
29
# File 'lib/sinatra/strong_parameters.rb', line 26

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.



24
25
26
# File 'lib/sinatra/strong_parameters.rb', line 24

def param
  @param
end