GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Added Inflector.humanize to turn attribute names like employee_salary into 
"Employee salary". Used by automated error reporting in AR.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@450 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
dhh (author)
Mon Jan 17 11:55:21 -0800 2005
commit  23b5a6fadf153a24cdc16474b18cb84daaef6b0c
tree    2ac9f210abdfaa14d16511d1528fc38f678c3eb3
parent  1b38c5523ecff17d4d78181db0fad1a74567c776
...
31
32
33
 
 
 
 
34
35
36
...
31
32
33
34
35
36
37
38
39
40
0
@@ -31,6 +31,10 @@ module ActiveSupport #:nodoc:
0
         def classify
0
           Inflector.classify(self)
0
         end
0
+
0
+ def humanize
0
+ Inflector.humanize(self)
0
+ end
0
 
0
         def foreign_key(separate_class_name_and_id_with_underscore = true)
0
           Inflector.foreign_key(self, separate_class_name_and_id_with_underscore)

Comments

    No one has commented yet.