diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-09-09 19:16:26 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-09-11 08:04:48 +0200 |
commit | 16868b53f9533ba48ca33bb694fade390f0ffe7e (patch) | |
tree | d25723db2b73ae81b4878f88c15ba27d519eff8d /activerecord/test/cases/relation | |
parent | 1245a9e06c66e77813fda621e825afdeacf2cd49 (diff) | |
download | rails-16868b53f9533ba48ca33bb694fade390f0ffe7e.tar.gz rails-16868b53f9533ba48ca33bb694fade390f0ffe7e.tar.bz2 rails-16868b53f9533ba48ca33bb694fade390f0ffe7e.zip |
A `NullRelation` should represent nothing. Closes #15176.
[Matthew Draper & Yves Senn]
Closes #16860. (pull request to discuss the implementation)
Diffstat (limited to 'activerecord/test/cases/relation')
-rw-r--r-- | activerecord/test/cases/relation/mutation_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/relation/mutation_test.rb b/activerecord/test/cases/relation/mutation_test.rb index 1da5c36e1c..4c94c2fd0d 100644 --- a/activerecord/test/cases/relation/mutation_test.rb +++ b/activerecord/test/cases/relation/mutation_test.rb @@ -18,6 +18,10 @@ module ActiveRecord def attribute_alias?(name) false end + + def sanitize_sql(sql) + sql + end end def relation |