diff options
Diffstat (limited to 'activerecord/test/models/toy.rb')
-rw-r--r-- | activerecord/test/models/toy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/toy.rb b/activerecord/test/models/toy.rb index 0377e50011..ddc7048a56 100644 --- a/activerecord/test/models/toy.rb +++ b/activerecord/test/models/toy.rb @@ -2,5 +2,5 @@ class Toy < ActiveRecord::Base self.primary_key = :toy_id belongs_to :pet - scope :with_pet, joins(:pet) + scope :with_pet, -> { joins(:pet) } end |