Skip to content

Commit

Permalink
Add user_sync_worker.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
vikhyat committed May 23, 2014
1 parent f8a821c commit 93eb426
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/workers/user_sync_worker.rb
@@ -0,0 +1,8 @@
class UserSyncWorker
include Sidekiq::Worker

def perform(user_id)
user = User.find(user_id)
open("http://forums.hummingbird.me/sync?secret=#{ENV['FORUM_SYNC_SECRET']}&auth_token=#{user.authentication_token}").read
end
end

0 comments on commit 93eb426

Please sign in to comment.