diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-30 14:56:53 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-30 14:56:53 -0800 |
commit | c856e25b32f3c2ea198d6f4ac46276a15fd20d80 (patch) | |
tree | 56cbdfd4fccf97175b810a3d3be1e0ca761728e0 | |
parent | 3ad0779e566067f26422a74f108d81ac458e4333 (diff) | |
download | rails-c856e25b32f3c2ea198d6f4ac46276a15fd20d80.tar.gz rails-c856e25b32f3c2ea198d6f4ac46276a15fd20d80.tar.bz2 rails-c856e25b32f3c2ea198d6f4ac46276a15fd20d80.zip |
removing arel 1.0 compatibility
-rw-r--r-- | activerecord/lib/active_record/relation.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb index 098a03b39b..c31a6e8feb 100644 --- a/activerecord/lib/active_record/relation.rb +++ b/activerecord/lib/active_record/relation.rb @@ -323,10 +323,7 @@ module ActiveRecord node.left.relation.name == table_name } - Hash[equalities.map { |where| - left, right = where.left, where.right - [ left.name, right.respond_to?(:value) ? right.value : right ] - }] + Hash[equalities.map { |where| [where.left.name, where.right] }] end def scope_for_create |