Module: Alchemy::Custom::Model::TranslationScope

Included in:
BaseHelper, ElFinder::Volumes::Base
Defined in:
lib/alchemy/custom/model/translation_scope.rb

Instance Method Summary collapse

Instance Method Details

#acm_t(*args) ⇒ Object

Methodo per le traduzioni scoppate sulla gemma



6
7
8
9
10
11
12
13
14
15
# File 'lib/alchemy/custom/model/translation_scope.rb', line 6

def acm_t(*args)
  options = args.last.is_a?(Hash) ? args.pop.dup : {}
  key = args.shift


  options[:scope] = "alchemy_custom_model#{options[:scope] ? ".#{options[:scope]}" : ""}"

  I18n.t(key, options)

end