diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-09-17 17:28:50 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-09-17 17:28:50 -0300 |
commit | 026289e28e9dcfe14a161e40766a17220ad9233d (patch) | |
tree | 815fb29daf05a5b5af1ee13544539bbed7ad101b /activesupport/lib | |
parent | 402ac43bb5a176706d3ba78f536d08cd8f8518ec (diff) | |
parent | 7a8fb281d8563668991be55a64388c3e8b96249c (diff) | |
download | rails-026289e28e9dcfe14a161e40766a17220ad9233d.tar.gz rails-026289e28e9dcfe14a161e40766a17220ad9233d.tar.bz2 rails-026289e28e9dcfe14a161e40766a17220ad9233d.zip |
Merge pull request #16948 from akshay-vishnoi/docs-rails-4point2
[ci skip] ActiveSupport CHANGELOG fixes
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/inflections.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/inflections.rb b/activesupport/lib/active_support/core_ext/string/inflections.rb index a943752f17..38d567c014 100644 --- a/activesupport/lib/active_support/core_ext/string/inflections.rb +++ b/activesupport/lib/active_support/core_ext/string/inflections.rb @@ -199,6 +199,7 @@ class String # 'employee_salary'.humanize # => "Employee salary" # 'author_id'.humanize # => "Author" # 'author_id'.humanize(capitalize: false) # => "author" + # '_id'.humanize # => "Id" def humanize(options = {}) ActiveSupport::Inflector.humanize(self, options) end |