We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d638da commit 607b204Copy full SHA for 607b204
lib/spark_api/models/finders.rb
@@ -6,9 +6,9 @@ module Finders
6
7
def find(*arguments)
8
scope = arguments.slice!(0)
9
- raise ArgumentError, "argument can't be nil" if scope.nil?
10
options = arguments.slice!(0) || {}
11
case scope
+ when nil then raise ArgumentError, "Argument for find() can't be nil"
12
when :all then find_every(options)
13
when :first then find_every(options).first
14
when :last then find_every(options).last
0 commit comments