aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/dup_test.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2017-07-26 13:59:14 -0400
committerSean Griffin <sean@seantheprogrammer.com>2017-07-26 13:59:14 -0400
commit6be22632b12a0700630fda9d154afa2386a97f10 (patch)
treec9b7215bbc1881902e2bbe5b285bf5404217a846 /activerecord/test/cases/dup_test.rb
parent6f9b01c056cd2f3a4761baf78df207e1154f1b06 (diff)
downloadrails-6be22632b12a0700630fda9d154afa2386a97f10.tar.gz
rails-6be22632b12a0700630fda9d154afa2386a97f10.tar.bz2
rails-6be22632b12a0700630fda9d154afa2386a97f10.zip
Use `_relation_for_itself` wherever possible
Anywhere that we're doing `self.class.unscoped.where(primary_key => id)` is somewhere that someone may want to extend. Even if this method isn't public API yet, this will make it easier for us to eventually expose an API around this. Plus, duplicated code makes me sad.
Diffstat (limited to 'activerecord/test/cases/dup_test.rb')
0 files changed, 0 insertions, 0 deletions