template/jobs/pong_time.rb in grape-gen-0.0.5 vs template/jobs/pong_time.rb in grape-gen-0.0.6
- old
+ new
@@ -3,9 +3,9 @@
include Sidekiq::Worker
sidekiq_options unique: true
def perform
- FayePublisher.publish('/time',Time.now.utc.to_s)
+ Faye::Publisher.instance.publish('/time',Time.now.utc.to_s)
end
end
end
\ No newline at end of file