lib/rocket_job/plugins/singleton.rb in rocketjob-5.1.1 vs lib/rocket_job/plugins/singleton.rb in rocketjob-5.2.0.beta1

- old
+ new

@@ -1,6 +1,6 @@ -require 'active_support/concern' +require "active_support/concern" module RocketJob module Plugins # Prevent this job from being saved if another is running, queued, or paused. module Singleton @@ -23,9 +23,8 @@ def rocket_job_singleton_check return unless (running? || queued? || paused?) && rocket_job_singleton_active? errors.add(:state, "Another instance of #{self.class.name} is already running, queued, or paused") end - end end end