Skip to content

Commit

Permalink
Fixed `Using the last argument as keyword parameters is deprecated; m…
Browse files Browse the repository at this point in the history
…aybe ** should be added to the call` warnings when using ruby 2.7
  • Loading branch information
dub-squared committed Sep 28, 2020
1 parent 94ffd9d commit d19d49b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/batch_loader/graphql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def initialize(item = nil)
@batch_loader = BatchLoader.for(item)
end

def batch(*args, &block)
@batch_loader.batch(*args, &block)
def batch(*args, **kwargs, &block)
@batch_loader.batch(*args, **kwargs, &block)
self
end

Expand Down

0 comments on commit d19d49b

Please sign in to comment.