Module: Alchemy::Custom::Model::TranslationScope
- Included in:
- BaseHelper, ElFinder::Volumes::Base
- Defined in:
- lib/alchemy/custom/model/translation_scope.rb
Instance Method Summary collapse
-
#acm_t(*args) ⇒ Object
Methodo per le traduzioni scoppate sulla gemma.
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) = args.last.is_a?(Hash) ? args.pop.dup : {} key = args.shift [:scope] = "alchemy_custom_model#{[:scope] ? ".#{[:scope]}" : ""}" I18n.t(key, ) end |