diff options
author | Matthew Draper <matthew@trebex.net> | 2016-11-13 22:06:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-13 22:06:07 -0500 |
commit | 72717e68af8a99a30faf67d3245ecca638566d89 (patch) | |
tree | 2efa04b03540d6290dc45805fd7b52a39810982c | |
parent | c163d93f948136d52195c644aa7bb23ec9795b38 (diff) | |
parent | fd7ca6ebca354e8509c4ec32bd343ab0aa511452 (diff) | |
download | rails-72717e68af8a99a30faf67d3245ecca638566d89.tar.gz rails-72717e68af8a99a30faf67d3245ecca638566d89.tar.bz2 rails-72717e68af8a99a30faf67d3245ecca638566d89.zip |
Merge pull request #27037 from kamipo/call_spawn_and_bang_method_for_none
Call `spawn` and bang method for `none`
-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: |