Skip to content

Commit 9916672

Browse files
committed
Add dynamic scope to RecurringTask
1 parent 0ee21e4 commit 9916672

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/models/solid_queue/recurring_task.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class RecurringTask < Record
1111
validate :existing_job_class
1212

1313
scope :static, -> { where(static: true) }
14+
scope :dynamic, -> { where(static: false) }
1415

1516
has_many :recurring_executions, foreign_key: :task_key, primary_key: :key
1617

0 commit comments

Comments
 (0)