Exception: Fortitude::Errors::ExtraAssigns

Inherits:
Base
  • Object
show all
Defined in:
lib/fortitude/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(widget, extra_assigns)
  super(%{The widget #{widget} does not accept the following parameters: #{extra_assigns.keys.sort_by(&:to_s).join(", ")}})
  @widget = widget
  @extra_assigns = extra_assigns
end

Instance Attribute Details

#extra_assignsObject (readonly)

Returns the value of attribute extra_assigns


32
33
34
# File 'lib/fortitude/errors.rb', line 32

def extra_assigns
  @extra_assigns
end

#widgetObject (readonly)

Returns the value of attribute widget


32
33
34
# File 'lib/fortitude/errors.rb', line 32

def widget
  @widget
end