You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use this plugin without ActiveJob but that is included in ActiveSupport dependencies.
So Que::Scheduler::ToEnqueue.active_job_loaded? returns true, but ActiveJob is undefined because I don't require and I don't want to use ActiveJob.
My proposal
rename active_job_loaded? to active_job_defined? like below and replace to this.
OK, I think I understand the issue. I will have a look very shortly and may come back with some questions. And may take you up on the offer of a PR :).
OK, yes, I see what you mean. It may mean the users in the future have to require "active_job" before this gem. If it crops up we can add some defensive messaging.
I think let's go with this change, yes please to a PR!
First, thanks great gem 😄
I use this plugin without ActiveJob but that is included in ActiveSupport dependencies.
So
Que::Scheduler::ToEnqueue.active_job_loaded?
returns true, but ActiveJob is undefined because I don't require and I don't want to use ActiveJob.My proposal
rename
active_job_loaded?
toactive_job_defined?
like below and replace to this.This change may break compatibility.
If you think this change is good, I'll create PR.
The text was updated successfully, but these errors were encountered: