Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Translation
Defined in:
lib/gettext_i18n_rails/active_record.rb

Class Method Summary collapse

Methods included from ActiveModel::Translation

gettext_translation_for_attribute_name, human_attribute_name, humanize_class_name, inheritance_tree_root

Class Method Details

.human_attribute_name(*args) ⇒ Object



6
7
8
# File 'lib/gettext_i18n_rails/active_record.rb', line 6

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

.human_name(*args) ⇒ Object

method deprecated in Rails 3.1



11
12
13
# File 'lib/gettext_i18n_rails/active_record.rb', line 11

def self.human_name(*args)
  _(self.humanize_class_name)
end