Sha256: 6045d8cac0f0e6e4d9d604d4c9bf23395d1854ed693aea1080e941547da288fa

Contents?: true

Size: 178 Bytes

Versions: 11

Compression:

Stored size: 178 Bytes

Contents

# TODO: This should really be in hyper-mesh
module ActiveModel
  class Name
    def human
      Hyperstack::Internal::I18n.t("activerecord.models.#{i18n_key}")
    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_model/name.rb
hyper-i18n-1.0.alpha1.7 lib/hyperstack/ext/i18n/active_model/name.rb
hyper-i18n-1.0.alpha1.6 lib/hyperstack/ext/i18n/active_model/name.rb
hyper-i18n-1.0.alpha1.5 lib/hyperstack/ext/i18n/active_model/name.rb
hyper-i18n-1.0.alpha1.4 lib/hyperstack/ext/i18n/active_model/name.rb
hyper-i18n-1.0.alpha1.3 lib/hyperstack/ext/i18n/active_model/name.rb
hyper-i18n-1.0.alpha1.2 lib/hyperstack/ext/i18n/active_model/name.rb
hyper-i18n-1.0.alpha1.1 lib/hyperstack/ext/i18n/active_model/name.rb
hyper-i18n-1.0.0.pre.alpha1 lib/hyperstack/ext/i18n/active_model/name.rb
hyper-i18n-1.0.alpha1 lib/hyperstack/ext/i18n/active_model/name.rb
hyper-i18n-1.0.pre.alpha1 lib/hyperstack/ext/i18n/active_model/name.rb