Module: GettextColumnMapping::Backends::GettextActiverecord
- Defined in:
- lib/gettext_column_mapping/backends/gettext_activerecord.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/gettext_column_mapping/backends/gettext_activerecord.rb', line 14 def self.included(base) base.class_eval do class << self def human_attribute_name_with_translation(attribute_key_name) GetText.s_(gettext_translation_for_attribute_name(attribute_key_name)) end alias_method_chain :human_attribute_name, :translation end end end |