Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix document for String#humanize #8560

Merged
merged 1 commit into from

4 participants

@u16suzu

Hello

I fixed document for String#humanize

@frodsan

Rebase please? :+1:

@u16suzu

Hello frodsan

I'm sorry.
I will send another pull request after rebase.

@carlosantoniodasilva

@u16suzu there's no need for a new pull request, you can rebase off rails master and push force to your repo, that github will update the pull request accordingly. Thanks!

@rafaelfranca rafaelfranca merged commit f12d09f into rails:master
@frodsan

@u16suzu thanks! In future, please use docrails for such changes.

@u16suzu

Thanks everyone!
OK I will use docrails for such changes.
Thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 19, 2012
  1. @u16suzu
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/core_ext/string/inflections.rb
View
4 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
Something went wrong with that request. Please try again.