Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for scheduled_at #107

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adds missing Aliases to scheduler.rb
timherby authored Oct 31, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit f5888a73ccccb4cadf3e2bc8525853b92b021881
3 changes: 3 additions & 0 deletions lib/resque_spec/scheduler.rb
Original file line number Diff line number Diff line change
@@ -6,8 +6,11 @@ def self.extended(klass)
if klass.respond_to? :enqueue_at
klass.instance_eval do
alias :enqueue_at_without_resque_spec :enqueue_at
alias :enqueue_at_with_queue_without_resque_spec :enqueue_at_with_queue
alias :enqueue_in_without_resque_spec :enqueue_in
alias :enqueue_in_with_queue_without_resque_spec :enqueue_in_with_queue
alias :remove_delayed_without_resque_spec :remove_delayed
alias :scheduled_at_without_resque_spec :scheduled_at
end
end
klass.extend(ResqueSpec::SchedulerExtMethods)