lib/resque_bus/publisher.rb in resque-bus-0.2.4 vs lib/resque_bus/publisher.rb in resque-bus-0.2.5

- old
+ new

@@ -1,9 +1,12 @@ module ResqueBus # publishes on a delay class Publisher - def self.perform(event_type, attributes = {}) - ResqueBus.log_worker("Publisher running: #{event_type} - #{attributes.inspect}") - ResqueBus.publish(event_type, attributes) + class << self + def perform(event_type, attributes = {}) + ResqueBus.log_worker("Publisher running: #{event_type} - #{attributes.inspect}") + ResqueBus.publish(event_type, attributes) + end end + end end \ No newline at end of file