Exception: Citizenship::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/citizenship/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(key, values = {}, scope) ⇒ Error

Returns a new instance of Error.



6
7
8
# File 'lib/citizenship/errors.rb', line 6

def initialize(key, values = {}, scope)
  super(I18n.t(key, values.merge(scope: "citizenship.#{scope}")))
end