diff options
author | Marcel Molina <marcel@vernix.org> | 2006-05-22 15:17:45 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-05-22 15:17:45 +0000 |
commit | f91096a543895a49876ec8e276cefefff6fdbe5a (patch) | |
tree | 83b1e93f4f36c426da7e3c005cbaf187165d427d /activesupport/lib/active_support | |
parent | 213992195d63ca8992676c1c51c276f9801c2d58 (diff) | |
download | rails-f91096a543895a49876ec8e276cefefff6fdbe5a.tar.gz rails-f91096a543895a49876ec8e276cefefff6fdbe5a.tar.bz2 rails-f91096a543895a49876ec8e276cefefff6fdbe5a.zip |
Normalize classify's argument to a String so that it plays nice with Symbols. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4359 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/inflector.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/inflector.rb b/activesupport/lib/active_support/inflector.rb index 54b9e064ac..a578ecb95e 100644 --- a/activesupport/lib/active_support/inflector.rb +++ b/activesupport/lib/active_support/inflector.rb @@ -147,7 +147,7 @@ module Inflector def classify(table_name) # strip out any leading schema name - camelize(singularize(table_name.sub(/.*\./, ''))) + camelize(singularize(table_name.to_s.sub(/.*\./, ''))) end def foreign_key(class_name, separate_class_name_and_id_with_underscore = true) |