Skip to content
Browse files

Changed the CHANGELOG for active_support and improved the doc for inf…

…lector method classify
  • Loading branch information...
1 parent 94b97f6 commit 8d5fcb691e7496900f1c77dff8d6e729c1b56201 @aditya-kapoor aditya-kapoor committed May 19, 2013
Showing with 9 additions and 8 deletions.
  1. +8 −0 activesupport/CHANGELOG.md
  2. +1 −8 activesupport/lib/active_support/inflector/methods.rb
View
8 activesupport/CHANGELOG.md
@@ -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
9 activesupport/lib/active_support/inflector/methods.rb
@@ -145,14 +145,7 @@ def tableize(class_name)
# '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"

0 comments on commit 8d5fcb6

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