Delayed::Backend::Base

Public Class Methods

included(base) click to toggle source
# File lib/delayed_job_unique_key/base.rb, line 4
def self.included(base)
  base.extend ClassMethods
end

Protected Instance Methods

check_unique_key() click to toggle source
# File lib/delayed_job_unique_key/base.rb, line 45
def check_unique_key
  return true if !self.respond_to?(:unique_key) || self.unique_key.blank?
  self.class.where(:unique_key => self.unique_key, :locked_at => nil).first.nil?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.