aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/rails/generators
diff options
context:
space:
mode:
authorKohei Suzuki <eagletmt@gmail.com>2015-04-10 18:20:02 +0900
committerKohei Suzuki <eagletmt@gmail.com>2015-04-11 07:48:01 +0900
commit28375dd621befc495dfc77a6558534951be5ef54 (patch)
treed2c05ebfc4b482f19c2a287987c55691211dc120 /activerecord/lib/rails/generators
parentf0d3c920a5aeb3babc35500e13288e148238b65e (diff)
downloadrails-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 'activerecord/lib/rails/generators')
0 files changed, 0 insertions, 0 deletions