Module: Granite::Action::Translations

Extended by:
ActiveSupport::Concern
Included in:
Granite::Action
Defined in:
lib/granite/action/translations.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

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



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

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