Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change class_inheritable_accessor to class_attribute in Delayed::Plugin
  • Loading branch information
bryckbost committed Sep 26, 2011
1 parent 4875b0a commit 39aa92a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/delayed/plugin.rb
@@ -1,11 +1,11 @@
module Delayed
class Plugin
class_inheritable_accessor :callback_block
class_attribute :callback_block

def self.callbacks(&block)
self.callback_block = block
end

def initialize
self.class.callback_block.call(Delayed::Worker.lifecycle) if self.class.callback_block
end
Expand Down

0 comments on commit 39aa92a

Please sign in to comment.