module Alchemy::Custom::Model::TranslationScope

Public Instance Methods

acm_t(*args) click to toggle source

Methodo per le traduzioni scoppate sulla gemma

# 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