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