Module: LogWeasel::Resque::ClassMethods

Defined in:
lib/log_weasel/resque.rb

Instance Method Summary collapse

Instance Method Details

#before_push(&block) ⇒ Object



34
35
36
# File 'lib/log_weasel/resque.rb', line 34

def before_push(&block)
  block ? (@before_push = block) : @before_push
end

#push(queue, item) ⇒ Object



38
39
40
41
# File 'lib/log_weasel/resque.rb', line 38

def push(queue, item)
  self.before_push.call(queue, item) if self.before_push
  super
end