Class: Yeti::Errors

Inherits:
ActiveModel::Errors
  • Object
show all
Defined in:
lib/yeti/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(base, opts = {}) ⇒ Errors

Returns a new instance of Errors.



4
5
6
7
# File 'lib/yeti/errors.rb', line 4

def initialize(base, opts={})
  super base
  @untranslated = opts.fetch :untranslated, false
end

Instance Method Details

#untranslated?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/yeti/errors.rb', line 9

def untranslated?
  @untranslated
end