Skip to content

Commit

Permalink
don't pass *args
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttam committed Feb 26, 2010
1 parent f12284c commit a52dd1f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/resque/resque.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def enqueue_with_throttle(klass, *args)
if should_throttle?(klass, args)
raise ThrottledError.new("#{klass} with key #{klass.key} has exceeded it's throttle limit")
end
enqueue_without_throttle(klass, *args)
enqueue_without_throttle(klass, args)
end
alias_method :enqueue_without_throttle, :enqueue
alias_method :enqueue, :enqueue_with_throttle
Expand Down
1 change: 0 additions & 1 deletion lib/resque/throttled_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,5 @@ def self.can_run_every
def self.disabled
settings[:disabled]
end

end
end
2 changes: 1 addition & 1 deletion resque-throttle.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Gem::Specification.new do |s|
s.name = %q{resque-throttle}
s.version = "0.2.10"
s.version = "0.2.11"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Scott J. Tamosunas"]
Expand Down

0 comments on commit a52dd1f

Please sign in to comment.