• K
    Raise ArgumentError when find_by receives no arguments · 28375dd6
    Kohei Suzuki 提交于
    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>
    ```
    28375dd6
finder_methods.rb 18.3 KB