Exception: Sinatra::StrongParameters::ParameterMissing
- Inherits:
-
StandardError
- Object
- StandardError
- Sinatra::StrongParameters::ParameterMissing
- Defined in:
- lib/sinatra/strong_parameters.rb
Instance Attribute Summary collapse
-
#param ⇒ Object
readonly
Returns the value of attribute param.
Instance Method Summary collapse
-
#initialize(param) ⇒ ParameterMissing
constructor
A new instance of ParameterMissing.
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
#param ⇒ Object (readonly)
Returns the value of attribute param.
24 25 26 |
# File 'lib/sinatra/strong_parameters.rb', line 24 def param @param end |