aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/toy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/toy.rb')
-rw-r--r--activerecord/test/models/toy.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/models/toy.rb b/activerecord/test/models/toy.rb
index 79a88db0da..6c45e99671 100644
--- a/activerecord/test/models/toy.rb
+++ b/activerecord/test/models/toy.rb
@@ -1,4 +1,6 @@
class Toy < ActiveRecord::Base
set_primary_key :toy_id
belongs_to :pet
+
+ scope :with_pet, joins(:pet)
end