diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-01-01 04:37:19 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-01-01 04:37:19 +0530 |
commit | 58ad6567692ee44b91bd05833b6cb6c454481e19 (patch) | |
tree | 6da793c1e0bc715b7d464ea059c7cfd951fb865b | |
parent | 8a32d3796778fc1f151a2259fa3b32b9d3c8d56b (diff) | |
download | rails-58ad6567692ee44b91bd05833b6cb6c454481e19.tar.gz rails-58ad6567692ee44b91bd05833b6cb6c454481e19.tar.bz2 rails-58ad6567692ee44b91bd05833b6cb6c454481e19.zip |
Make sure association proxy does not pass quoted table name to sanitize_sql
-rw-r--r-- | activerecord/lib/active_record/associations/association_proxy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/association_proxy.rb b/activerecord/lib/active_record/associations/association_proxy.rb index 7d8f4670fa..022dd2ae9b 100644 --- a/activerecord/lib/active_record/associations/association_proxy.rb +++ b/activerecord/lib/active_record/associations/association_proxy.rb @@ -161,7 +161,7 @@ module ActiveRecord end # Forwards the call to the reflection class. - def sanitize_sql(sql, table_name = @reflection.klass.quoted_table_name) + def sanitize_sql(sql, table_name = @reflection.klass.table_name) @reflection.klass.send(:sanitize_sql, sql, table_name) end |