aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/association_scope_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/associations/association_scope_test.rb')
-rw-r--r--activerecord/test/cases/associations/association_scope_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/association_scope_test.rb b/activerecord/test/cases/associations/association_scope_test.rb
index fc5dbd0890..472e270f8c 100644
--- a/activerecord/test/cases/associations/association_scope_test.rb
+++ b/activerecord/test/cases/associations/association_scope_test.rb
@@ -8,7 +8,7 @@ module ActiveRecord
test 'does not duplicate conditions' do
scope = AssociationScope.scope(Author.new.association(:welcome_posts),
Author.connection)
- binds = scope.where_clause.binds.map(&:last)
+ binds = scope.where_clause.binds.map(&:value)
assert_equal binds.uniq, binds
end
end