Module: Granite::Translations

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/granite/translations.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#translate(*args) ⇒ Object Also known as: t



5
6
7
# File 'lib/granite/translations.rb', line 5

def translate(*args)
  I18n.translate(*self.class.scope_translation_args(args))
end