Exception: ActionControllerTweaks::Session::InvalidOptionValue

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/action_controller_tweaks/session.rb

Class Method Summary collapse

Class Method Details

.new(option_key, options_value, expected_types) ⇒ Object



48
49
50
51
# File 'lib/action_controller_tweaks/session.rb', line 48

def self.new(option_key, options_value, expected_types)
  super("option key `#{option_key}` should contain value with type(s): #{expected_types}, "\
    "but got <#{options_value.inspect}> (#{options_value.class})")
end