module ActsEnumTranslable::Support::I18n
Public Instance Methods
i18n_key(i18n_key, key)
click to toggle source
based in translations for active record models guides.rubyonrails.org/i18n.html#translations-for-active-record-models @return [String] activerecord.attributes.model_name.attribute_name.field_name
# File lib/acts_enum_translable/support/i18n.rb, line 8 def i18n_key(i18n_key, key) "activerecord.attributes.#{name.underscore.pluralize}.#{i18n_key}.#{key}" end