Sha256: 5cc5b0108c61791aa4e8422756b1fdaa49e891f9187e92ba48c4de597524544d

Contents?: true

Size: 284 Bytes

Versions: 33

Compression:

Stored size: 284 Bytes

Contents

require 'gettext_i18n_rails/active_model/translation'

class ActiveRecord::Base
  extend ActiveModel::Translation

  def self.human_attribute_name(*args)
    super(*args)
  end

  # method deprecated in Rails 3.1
  def self.human_name(*args)
    _(self.humanize_class_name)
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
gettext_i18n_rails-1.13.0 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.12.0 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.11.0 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.10.1 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.10.0 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.9.0 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.8.1 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.8.0 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.7.2 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.7.1 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.7.0 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.6.0 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.5.0 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.4.0 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.3.2 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.3.1 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.3.0 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.2.3 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.2.2 lib/gettext_i18n_rails/active_record.rb
gettext_i18n_rails-1.2.1 lib/gettext_i18n_rails/active_record.rb