Sha256: 70c6948b0c37f94121aae991d4edf585b8a128f7d05229be9ffc541a76255581
Contents?: true
Size: 362 Bytes
Versions: 27
Compression:
Stored size: 362 Bytes
Contents
module Alchemy::Custom::Model module TranslationScope ## # Methodo per le traduzioni scoppate sulla gemma 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 end end
Version data entries
27 entries across 27 versions & 1 rubygems