Permalink
Browse files

Fix: documentation for String#humanize

  • Loading branch information...
1 parent 4d2d0d9 commit f12d09f97fb54acb0a44eebbc049b4e30318634a @u16suzu u16suzu committed Dec 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/core_ext/string/inflections.rb
@@ -182,8 +182,8 @@ def classify
# Capitalizes the first word, turns underscores into spaces, and strips '_id'.
# Like +titleize+, this is meant for creating pretty output.
#
- # "employee_salary" # => "Employee salary"
- # "author_id" # => "Author"
+ # "employee_salary".humanize # => "Employee salary"
+ # "author_id".humanize # => "Author"
def humanize
ActiveSupport::Inflector.humanize(self)
end

0 comments on commit f12d09f

Please sign in to comment.