Skip to content

Commit

Permalink
Try a different approach for fixing the deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
connorshea committed Dec 19, 2019
1 parent 97a019b commit c491b8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/helpers/unique_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def initialize(generator, max_retries)
end

# rubocop:disable Style/MethodMissingSuper
def method_missing(name, *arguments, **kwargs)
def method_missing(name, *arguments)
self.class.marked_unique.add(self)

@max_retries.times do
result = @generator.public_send(name, *arguments, **kwargs)
result = @generator.public_send(name, *arguments, **{})

next if @previous_results[[name, arguments]].include?(result)

Expand Down

0 comments on commit c491b8f

Please sign in to comment.