class Shamu::Error

A generic error class for problems in the shamu library.

Private Instance Methods

translate( key, **args ) click to toggle source
# File lib/shamu/error.rb, line 13
def translate( key, **args )
  I18n.translate key, args.merge( scope: translation_scope )
end
translation_scope() click to toggle source
# File lib/shamu/error.rb, line 9
def translation_scope
  [ :shamu, :errors ]
end