Project

General

Profile

« Previous | Next » 

Revision b75e1935

Added by Pierre-Louis Bonicoli over 14 years ago

  • ID b75e193597dedcaa88f74a1d92dd35bb3adfcf1b

really use human_names

View differences:

depends.txt
drwxr-xr-x 4 duck dc-users 4096 Aug 9 2008 acts_as_list git://github.com/rails/acts_as_list.git
drwxr-xr-x 5 duck dc-users 4096 Jun 5 2009 attachment_fu git://github.com/technoweenie/attachment_fu.git
drwxr-xr-x 4 duck dc-users 4096 Sep 12 2008 empty_fields_to_null http://rcs-git.duckcorp.org/people/duck/rails_plugins/empty_fields_to_null.git
drwxr-xr-x 4 duck dc-users 4096 Sep 12 2008 human_names http://rcs-git.duckcorp.org/people/duck/rails_plugins/human_names.git
drwxr-xr-x 4 duck dc-users 4096 Sep 12 2008 restful_support http://rcs-git.duckcorp.org/people/duck/rails_plugins/restful_support.git
drwxr-xr-x 6 duck dc-users 4096 Sep 12 2008 save_without_callbacks git://github.com/jpmckinney/save_without_callbacks.git
drwxr-xr-x 5 duck dc-users 4096 Aug 16 2008 sortable-list svn://rubyforge.org/var/svn/sortable-list/trunk
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