File: active_record.rb

package info (click to toggle)
ruby-gettext-i18n-rails 1.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 148 kB
  • sloc: ruby: 515; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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