Skip to content

Commit

Permalink
Fixed documentation about unique_args (#228)
Browse files Browse the repository at this point in the history
When defining unique_args with symbol the arguments is passed as Array. Just like the Proc way.
  • Loading branch information
andresakata authored and mhenrixon committed Jun 17, 2017
1 parent c4385a4 commit d67b862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ class UniqueJobWithFilterMethod
sidekiq_options unique: :until_and_while_executing,
unique_args: :unique_args

def self.unique_args(name, id, options)
[ name, options[:type] ]
def self.unique_args(args)
[ args[0], args[2][:type] ]
end

...
Expand Down

0 comments on commit d67b862

Please sign in to comment.