Module: ActiveRecord::Dbt::I18nWrapper::Translate
- Extended by:
- RequiredMethods
- Included in:
- Column::Yml, Seed::Enum::Yml, Table::Yml
- Defined in:
- lib/active_record/dbt/i18n_wrapper/translate.rb
Instance Method Summary collapse
Methods included from RequiredMethods
Instance Method Details
#translated_attribute_name ⇒ Object
17 18 19 20 |
# File 'lib/active_record/dbt/i18n_wrapper/translate.rb', line 17 def translated_attribute_name @translated_attribute_name ||= translated_column_name || translated_default_column_name end |
#translated_table_name ⇒ Object
13 14 15 |
# File 'lib/active_record/dbt/i18n_wrapper/translate.rb', line 13 def translated_table_name I18n.t("activerecord.models.#{table_name_singularize}", default: nil) end |