aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
diff options
context:
space:
mode:
authorRafael Mendonça França + Kassio Borges <rafaelmfranca+kassioborgesm@gmail.com>2013-08-31 14:53:28 -0300
committerRafael Mendonça França + Kassio Borges <rafaelmfranca+kassioborgesm@gmail.com>2013-08-31 14:53:28 -0300
commitbf2c4280563ba5f86072c1bad8af27ff5e5da0f3 (patch)
tree5cd1483a8a43efbad3f81d8b7aafb81f36509f60 /activerecord/test/cases/associations
parentadbd04ff8026d7b920f887e82334657f4914ff04 (diff)
downloadrails-bf2c4280563ba5f86072c1bad8af27ff5e5da0f3.tar.gz
rails-bf2c4280563ba5f86072c1bad8af27ff5e5da0f3.tar.bz2
rails-bf2c4280563ba5f86072c1bad8af27ff5e5da0f3.zip
Don't need to check if the scope respond to call
We are checking this when defining the default scope and raising an ArgumentError
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r--activerecord/test/cases/associations/nested_through_associations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/nested_through_associations_test.rb b/activerecord/test/cases/associations/nested_through_associations_test.rb
index 9b1abc3b81..cf3c07845c 100644
--- a/activerecord/test/cases/associations/nested_through_associations_test.rb
+++ b/activerecord/test/cases/associations/nested_through_associations_test.rb
@@ -371,7 +371,7 @@ class NestedThroughAssociationsTest < ActiveRecord::TestCase
prev_default_scope = Club.default_scopes
[:includes, :preload, :joins, :eager_load].each do |q|
- Club.default_scopes = [Club.send(q, :category)]
+ Club.default_scopes = [proc { Club.send(q, :category) }]
assert_equal categories(:general), members(:groucho).reload.club_category
end
ensure