aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/reader.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/reader.rb')
-rw-r--r--activerecord/test/models/reader.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/reader.rb b/activerecord/test/models/reader.rb
index f8fb9c573e..3a6b7fad34 100644
--- a/activerecord/test/models/reader.rb
+++ b/activerecord/test/models/reader.rb
@@ -2,6 +2,7 @@ class Reader < ActiveRecord::Base
belongs_to :post
belongs_to :person, :inverse_of => :readers
belongs_to :single_person, :class_name => 'Person', :foreign_key => :person_id, :inverse_of => :reader
+ belongs_to :first_post, -> { where(id: [2, 3]) }
end
class SecureReader < ActiveRecord::Base