diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-06 17:33:25 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-06 17:51:48 -0200 |
commit | e26fa7b9216443c4dfcb887694afbefa70a9e450 (patch) | |
tree | 7fc9df4843621ac4a33d582e500a42ff9f2f8d9e /activejob/test | |
parent | decb7b66d040eafbbf03e4533672eb135d49a036 (diff) | |
download | rails-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 'activejob/test')
0 files changed, 0 insertions, 0 deletions