Exception: Fortitude::Errors::ExtraAssigns
- Defined in:
- lib/fortitude/errors.rb
Instance Attribute Summary collapse
-
#extra_assigns ⇒ Object
readonly
Returns the value of attribute extra_assigns.
-
#widget ⇒ Object
readonly
Returns the value of attribute widget.
Instance Method Summary collapse
-
#initialize(widget, extra_assigns) ⇒ ExtraAssigns
constructor
A new instance of ExtraAssigns.
Constructor Details
#initialize(widget, extra_assigns) ⇒ ExtraAssigns
Returns a new instance of ExtraAssigns.
34 35 36 37 38 |
# File 'lib/fortitude/errors.rb', line 34 def initialize(, extra_assigns) super(%{The widget #{} does not accept the following parameters: #{extra_assigns.keys.sort_by(&:to_s).join(", ")}}) @widget = @extra_assigns = extra_assigns end |
Instance Attribute Details
#extra_assigns ⇒ Object (readonly)
Returns the value of attribute extra_assigns.
32 33 34 |
# File 'lib/fortitude/errors.rb', line 32 def extra_assigns @extra_assigns end |
#widget ⇒ Object (readonly)
Returns the value of attribute widget.
32 33 34 |
# File 'lib/fortitude/errors.rb', line 32 def @widget end |