diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-08-11 08:52:48 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-08-15 23:10:16 +0100 |
commit | c3dcb795f17017cb8c3f819a30e89136540e9584 (patch) | |
tree | 26c23666d4cb6281b83e46556ed72b4c4b16f907 /activerecord | |
parent | cc206a3507699e2c94b2d62ec5226fd20d5d98b3 (diff) | |
download | rails-c3dcb795f17017cb8c3f819a30e89136540e9584.tar.gz rails-c3dcb795f17017cb8c3f819a30e89136540e9584.tar.bz2 rails-c3dcb795f17017cb8c3f819a30e89136540e9584.zip |
Use new SelectManager#source method
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb | 2 | ||||
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/mysql_adapter.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb index cba00dc625..ae5ae16dc7 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb @@ -593,7 +593,7 @@ module ActiveRecord update.where update.key.in(subselect) else - update.table select.ast.cores.last.source + update.table select.source update.wheres = select.constraints end end diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb index c3a066a622..a44ac08ce4 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb @@ -507,7 +507,7 @@ module ActiveRecord update.where update.key.in(subselect) else - update.table select.ast.cores.last.source + update.table select.source update.wheres = select.constraints end end |