diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-11-14 11:28:39 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-11-14 11:32:33 +0900 |
commit | fd7ca6ebca354e8509c4ec32bd343ab0aa511452 (patch) | |
tree | 2efa04b03540d6290dc45805fd7b52a39810982c /activerecord | |
parent | c163d93f948136d52195c644aa7bb23ec9795b38 (diff) | |
download | rails-fd7ca6ebca354e8509c4ec32bd343ab0aa511452.tar.gz rails-fd7ca6ebca354e8509c4ec32bd343ab0aa511452.tar.bz2 rails-fd7ca6ebca354e8509c4ec32bd343ab0aa511452.zip |
Call `spawn` and bang method for `none`
All query methods calls `spawn` and bang method, but only `none` is not.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 2a0dd1c10f..5f5d8ceea3 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -763,7 +763,7 @@ module ActiveRecord # end # def none - where("1=0").extending!(NullRelation) + spawn.none! end def none! # :nodoc: |