aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/support/connection_helper.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-06 17:33:25 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-06 17:51:48 -0200
commite26fa7b9216443c4dfcb887694afbefa70a9e450 (patch)
tree7fc9df4843621ac4a33d582e500a42ff9f2f8d9e /activerecord/test/support/connection_helper.rb
parentdecb7b66d040eafbbf03e4533672eb135d49a036 (diff)
downloadrails-e26fa7b9216443c4dfcb887694afbefa70a9e450.tar.gz
rails-e26fa7b9216443c4dfcb887694afbefa70a9e450.tar.bz2
rails-e26fa7b9216443c4dfcb887694afbefa70a9e450.zip
Stoping using Relation#merge in default_scoped
Relation#merge checks if the argument is an array and the only possible returns of build_default_scope is nil or a Relation. Doing this we can raise an ArgumentError when Relation#merge receive a nil value.
Diffstat (limited to 'activerecord/test/support/connection_helper.rb')
0 files changed, 0 insertions, 0 deletions