lib/api_resource/scopes.rb in api_resource-0.6.1 vs lib/api_resource/scopes.rb in api_resource-0.6.2

- old
+ new

@@ -49,10 +49,10 @@ if arg_types[i] == :rest finder_opts[scope_name][arg_name] = args.slice(i, args.count) # Else we are only dealing with a single argument else - if arg_types[i] == :req || args[i].present? + if arg_types[i] == :req || (i < args.count) finder_opts[scope_name][arg_name] = args[i] end end end