aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2013-05-19 21:14:37 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2013-05-19 21:14:37 +0530
commit1ad0d1ed4e4955ae3069f363a686d98476a31bff (patch)
tree8e71fd3be64d10f2937c5a8f4af652548df3f065
parentc62b7c1f079967055aa9ddd897fba40475707df4 (diff)
downloadrails-1ad0d1ed4e4955ae3069f363a686d98476a31bff.tar.gz
rails-1ad0d1ed4e4955ae3069f363a686d98476a31bff.tar.bz2
rails-1ad0d1ed4e4955ae3069f363a686d98476a31bff.zip
Revert "Changed the CHANGELOG for active_support and improved the doc for inflector method classify"
This reverts commit 8d5fcb691e7496900f1c77dff8d6e729c1b56201. Reason: Changelogs are not to be edited in docrails. [ci skip]
-rw-r--r--activesupport/CHANGELOG.md8
-rw-r--r--activesupport/lib/active_support/inflector/methods.rb9
2 files changed, 8 insertions, 9 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index df584eb643..7c666a9b83 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -23,12 +23,4 @@
*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.
diff --git a/activesupport/lib/active_support/inflector/methods.rb b/activesupport/lib/active_support/inflector/methods.rb
index 0a24e5afb8..3c46cd9690 100644
--- a/activesupport/lib/active_support/inflector/methods.rb
+++ b/activesupport/lib/active_support/inflector/methods.rb
@@ -145,7 +145,14 @@ module ActiveSupport
# 'egg_and_hams'.classify # => "EggAndHam"
# 'posts'.classify # => "Post"
#
- # Some singular names are not handled correctly, such as:
+ # 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
#
# "radius".classify #=> "Radiu" it should be "Radius"
# "feet".classify #=> "Foot", it should be "Feet"