aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2017-07-18 13:11:01 -0400
committerGitHub <noreply@github.com>2017-07-18 13:11:01 -0400
commit41d51b07160484b616e48658ddb76d1d1d13a6c0 (patch)
tree8667114fb9c227ad1459782f8405583828040a2f /activerecord/test/models
parent8ebe1f2feed30809abb3f114242dda7379e66e4b (diff)
parent9aa04315febfb37b50f52471a2837c40313a2d5f (diff)
downloadrails-41d51b07160484b616e48658ddb76d1d1d13a6c0.tar.gz
rails-41d51b07160484b616e48658ddb76d1d1d13a6c0.tar.bz2
rails-41d51b07160484b616e48658ddb76d1d1d13a6c0.zip
Merge pull request #29834 from kamipo/fix_unscoping_default_scope_with_sti_association
Fix unscoping `default_scope` in STI associations
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/comment.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/comment.rb b/activerecord/test/models/comment.rb
index eecf923046..dc2d421cd7 100644
--- a/activerecord/test/models/comment.rb
+++ b/activerecord/test/models/comment.rb
@@ -54,6 +54,7 @@ class Comment < ActiveRecord::Base
end
class SpecialComment < Comment
+ default_scope { where(deleted_at: nil) }
end
class SubSpecialComment < SpecialComment