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

Version Path
alchemy-custom-model-0.1.6 lib/alchemy/custom/model/translation_scope.rb
alchemy-custom-model-0.1.5 lib/alchemy/custom/model/translation_scope.rb
alchemy-custom-model-0.1.4 lib/alchemy/custom/model/translation_scope.rb
alchemy-custom-model-0.1.3 lib/alchemy/custom/model/translation_scope.rb
alchemy-custom-model-0.1.2 lib/alchemy/custom/model/translation_scope.rb
alchemy-custom-model-0.1.1 lib/alchemy/custom/model/translation_scope.rb
alchemy-custom-model-0.1.0 lib/alchemy/custom/model/translation_scope.rb