Skip to content
This repository
Browse code

Merge pull request #8560 from u16suzu/master

Fix document for String#humanize

Conflicts:
	activesupport/lib/active_support/core_ext/string/inflections.rb
  • Loading branch information...
commit 4eefa1ef1d68d55bc518a78812b14aa24c41d036 2 parents 3aa327f + f12d09f
Rafael Mendonça França authored December 20, 2012
4  activesupport/lib/active_support/core_ext/string/inflections.rb
@@ -193,8 +193,8 @@ def classify
193 193
   # Capitalizes the first word, turns underscores into spaces, and strips '_id'.
194 194
   # Like +titleize+, this is meant for creating pretty output.
195 195
   #
196  
-  #   'employee_salary' # => "Employee salary"
197  
-  #   'author_id'       # => "Author"
  196
+  #   'employee_salary'.humanize # => "Employee salary"
  197
+  #   'author_id'.humanize       # => "Author"
198 198
   def humanize
199 199
     ActiveSupport::Inflector.humanize(self)
200 200
   end

0 notes on commit 4eefa1e

Please sign in to comment.
Something went wrong with that request. Please try again.