1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Changed the CHANGELOG for active_support and improved the doc for inflector method classify

This commit is contained in:
aditya-kapoor 2013-05-19 10:45:58 +05:30
parent 94b97f6154
commit 8d5fcb691e
2 changed files with 9 additions and 8 deletions

View file

@ -23,4 +23,12 @@
*Daniel Schierbeck*
* Earlier in the Rails 3.2.x series, the some of the singular names were not handled correctly
such as for "business", "address" the classify function would return "busines" and "addres" respectively.. but now this has been resolved and corrected in Rails 4
# 'business'.classify # => "Business"
# 'address'.classify # => "Address"
*Aditya Kapoor*
Please check [4-0-stable](https://github.com/rails/rails/blob/4-0-stable/activesupport/CHANGELOG.md) for previous changes.

View file

@ -145,14 +145,7 @@ module ActiveSupport
# 'egg_and_hams'.classify # => "EggAndHam"
# 'posts'.classify # => "Post"
#
# Earlier in the Rails 3.2.x series, the some of the singular names were not handled correctly such as
# for "business", "address" the classify function would return "busines" and "addres" respectively.. but now
# this has been resolved and corrected in Rails 4
#
# 'business'.classify # => "Business"
# 'address'.classify # => "Address"
#
# Yet some singular names are not handled correctly and I guess we would work upon it to improve upon these shortcomings
# Some singular names are not handled correctly, such as:
#
# "radius".classify #=> "Radiu" it should be "Radius"
# "feet".classify #=> "Foot", it should be "Feet"