Sha256: cc94cd9532dc8fe807625935099802516e141f3e31145504f55a56d7012eb007

Contents?: true

Size: 167 Bytes

Versions: 6

Compression:

Stored size: 167 Bytes

Contents

# TODO: This should really be in hyper-mesh
module ActiveModel
  class Name
    def human
      HyperI18n::I18n.t("activerecord.models.#{i18n_key}")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hyper-i18n-0.99.6 lib/hyper-i18n/active_model/name.rb
hyper-i18n-0.99.5 lib/hyper-i18n/active_model/name.rb
hyper-i18n-0.99.4 lib/hyper-i18n/active_model/name.rb
hyper-i18n-0.99.3 lib/hyper-i18n/active_model/name.rb
hyper-i18n-0.99.2 lib/hyper-i18n/active_model/name.rb
hyper-i18n-0.99.1 lib/hyper-i18n/active_model/name.rb