diff options
author | Kohei Suzuki <eagletmt@gmail.com> | 2015-04-10 18:20:02 +0900 |
---|---|---|
committer | Kohei Suzuki <eagletmt@gmail.com> | 2015-04-11 07:48:01 +0900 |
commit | 28375dd621befc495dfc77a6558534951be5ef54 (patch) | |
tree | d2c05ebfc4b482f19c2a287987c55691211dc120 /activemodel/lib | |
parent | f0d3c920a5aeb3babc35500e13288e148238b65e (diff) | |
download | rails-28375dd621befc495dfc77a6558534951be5ef54.tar.gz rails-28375dd621befc495dfc77a6558534951be5ef54.tar.bz2 rails-28375dd621befc495dfc77a6558534951be5ef54.zip |
Raise ArgumentError when find_by receives no arguments
It fixes the strange error saying undefined method `take'.
```
RelationTest#test_find_by_without_arg_behaves_same_with_find_by({}):
NoMethodError: undefined method `take' for #<ActiveRecord::QueryMethods::WhereChain:0x007f9c55db1d68>
```
Diffstat (limited to 'activemodel/lib')
0 files changed, 0 insertions, 0 deletions