Revision b75e1935
Added by Pierre-Louis Bonicoli over 13 years ago
- ID b75e193597dedcaa88f74a1d92dd35bb3adfcf1b
lib/rails_fixes.rb | ||
---|---|---|
end
|
||
end
|
||
end
|
||
|
||
class ActiveRecord::Base
|
||
def human_name
|
||
self.class.human_name
|
||
end
|
||
|
||
def self.human_name(options={})
|
||
::ActiveRecord::Base.human_attribute_table_name_for_error(self.to_s.underscore)
|
||
end
|
||
end
|
||
|
Also available in: Unified diff
really use human_names