module ActiveRecord::ClassMethods
Public Instance Methods
human_attribute_name(attribute, opts = {})
click to toggle source
# File lib/hyper-i18n/active_record/class_methods.rb, line 3 def human_attribute_name(attribute, opts = {}) attribute = "activerecord.attributes.#{model_name.i18n_key}.#{attribute}" HyperI18n::I18n.t(attribute, opts) end