aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflector
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2014-04-20 21:43:24 +0200
committerArun Agrawal <arunagw@gmail.com>2014-04-20 21:46:50 +0200
commit94799eb7a2f49ec520d3718b7cb6fc4f2cc48c75 (patch)
tree0d6e9874c95801e4c7f1161fb0a0be4fa07606e9 /activesupport/lib/active_support/inflector
parent50b849c7e0ed04d0917f94ac9524b8c25103eee8 (diff)
downloadrails-94799eb7a2f49ec520d3718b7cb6fc4f2cc48c75.tar.gz
rails-94799eb7a2f49ec520d3718b7cb6fc4f2cc48c75.tar.bz2
rails-94799eb7a2f49ec520d3718b7cb6fc4f2cc48c75.zip
Changed miss-leading comment [ci skip]
After this 21dbe6f39b57f52967e92716dbd5e2b894e7a64c 2.1.1 :001 > 'business'.classify => "Business" 2.1.1 :004 > 'calculus'.classify => "Calculu" 2.1.1 :005 >
Diffstat (limited to 'activesupport/lib/active_support/inflector')
-rw-r--r--activesupport/lib/active_support/inflector/methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/inflector/methods.rb b/activesupport/lib/active_support/inflector/methods.rb
index eba2c2bbdb..4a05d678ea 100644
--- a/activesupport/lib/active_support/inflector/methods.rb
+++ b/activesupport/lib/active_support/inflector/methods.rb
@@ -155,7 +155,7 @@ module ActiveSupport
#
# Singular names are not handled correctly:
#
- # 'business'.classify # => "Business"
+ # 'calculus'.classify # => "Calculu"
def classify(table_name)
# strip out any leading schema name
camelize(singularize(table_name.to_s.sub(/.*\./, '')))