Permalink
Browse files

Make sure association proxy does not pass quoted table name to saniti…

…ze_sql
  • Loading branch information...
1 parent 8a32d37 commit 58ad6567692ee44b91bd05833b6cb6c454481e19 @lifo lifo committed Dec 31, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/association_proxy.rb
@@ -161,7 +161,7 @@ def interpolate_sql(sql, record = nil)
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

0 comments on commit 58ad656

Please sign in to comment.