Module: AwesomeTranslations::ControllerTranslateFunctionality::Methods

Defined in:
lib/awesome_translations/controller_translate_functionality.rb

Instance Method Summary collapse

Instance Method Details

#controller_t(key, *args, **opts, &blk) ⇒ Object



10
11
12
# File 'lib/awesome_translations/controller_translate_functionality.rb', line 10

def controller_t(key, *args, **opts, &blk)
  AwesomeTranslations::GlobalTranslator.translate(key, action_in_key: false, caller_number: 1, translation_args: args, translation_opts: opts, &blk)
end