Sha256: 9b18b1ebdc1447524e3a604f83704e529e4b2cb92c0e75a51bbb4a1fc9efd9b2

Contents?: true

Size: 233 Bytes

Versions: 6

Compression:

Stored size: 233 Bytes

Contents

module ActiveRecord
  module ClassMethods
    def human_attribute_name(attribute, opts = {})
      attribute = "activerecord.attributes.#{model_name.i18n_key}.#{attribute}"

      HyperI18n::I18n.t(attribute, opts)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hyper-i18n-0.99.6 lib/hyper-i18n/active_record/class_methods.rb
hyper-i18n-0.99.5 lib/hyper-i18n/active_record/class_methods.rb
hyper-i18n-0.99.4 lib/hyper-i18n/active_record/class_methods.rb
hyper-i18n-0.99.3 lib/hyper-i18n/active_record/class_methods.rb
hyper-i18n-0.99.2 lib/hyper-i18n/active_record/class_methods.rb
hyper-i18n-0.99.1 lib/hyper-i18n/active_record/class_methods.rb