Sha256: 089ccf6b5fde363705561197573fe9654f403d051272e1da33240c2ae97154f8
Contents?: true
Size: 378 Bytes
Versions: 10
Compression:
Stored size: 378 Bytes
Contents
# frozen_string_literal: true module MtkFramework module ActiveInteractionConcerns module I18nable extend ActiveSupport::Concern def i18n_scope "#{self.class.i18n_scope}.#{self.class.name.underscore}" end def t(*args, **h_args) h_args.reverse_merge!(scope: i18n_scope) I18n.t(*args, **h_args) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems