Sha256: b6cb272587674068cb11c037defb0580bafdb4d4f0e9f478ac893d229bf0796b

Contents?: true

Size: 244 Bytes

Versions: 11

Compression:

Stored size: 244 Bytes

Contents

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

      Hyperstack::Internal::I18n.t(attribute, opts)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hyper-i18n-1.0.alpha1.8 lib/hyperstack/ext/i18n/active_record/class_methods.rb
hyper-i18n-1.0.alpha1.7 lib/hyperstack/ext/i18n/active_record/class_methods.rb
hyper-i18n-1.0.alpha1.6 lib/hyperstack/ext/i18n/active_record/class_methods.rb
hyper-i18n-1.0.alpha1.5 lib/hyperstack/ext/i18n/active_record/class_methods.rb
hyper-i18n-1.0.alpha1.4 lib/hyperstack/ext/i18n/active_record/class_methods.rb
hyper-i18n-1.0.alpha1.3 lib/hyperstack/ext/i18n/active_record/class_methods.rb
hyper-i18n-1.0.alpha1.2 lib/hyperstack/ext/i18n/active_record/class_methods.rb
hyper-i18n-1.0.alpha1.1 lib/hyperstack/ext/i18n/active_record/class_methods.rb
hyper-i18n-1.0.0.pre.alpha1 lib/hyperstack/ext/i18n/active_record/class_methods.rb
hyper-i18n-1.0.alpha1 lib/hyperstack/ext/i18n/active_record/class_methods.rb
hyper-i18n-1.0.pre.alpha1 lib/hyperstack/ext/i18n/active_record/class_methods.rb