aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2014-04-20 21:23:52 +0200
committerArun Agrawal <arunagw@gmail.com>2014-04-20 21:23:52 +0200
commit50b849c7e0ed04d0917f94ac9524b8c25103eee8 (patch)
tree3c914a5f38e1a97935708f9a1a7b8d2298dd1c98 /activesupport/lib/active_support
parent86b02826a6d301fe19c30a6f5c01a9e084279c03 (diff)
parent21dbe6f39b57f52967e92716dbd5e2b894e7a64c (diff)
downloadrails-50b849c7e0ed04d0917f94ac9524b8c25103eee8.tar.gz
rails-50b849c7e0ed04d0917f94ac9524b8c25103eee8.tar.bz2
rails-50b849c7e0ed04d0917f94ac9524b8c25103eee8.zip
Merge pull request #14823 from kuldeepaggarwal/fix-inflector-example
correct the classify example's output.
Diffstat (limited to 'activesupport/lib/active_support')
-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 94bda511bc..eba2c2bbdb 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 # => "Busines"
+ # 'business'.classify # => "Business"
def classify(table_name)
# strip out any leading schema name
camelize(singularize(table_name.to_s.sub(/.*\./, '')))