summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-05-16 18:11:33 -0600
committermo khan <mo@mokhan.ca>2014-05-16 18:11:33 -0600
commit2da65f259f34f2f1561baecf4da664ee8ea708cb (patch)
tree4af410d89148173e507085ae1c31f9c0729aed07 /app
parenta2ffa1d332536af4dbaa9524d18e9b463e97ddb2 (diff)
publish to twitter from delayed jobs.
Diffstat (limited to 'app')
-rw-r--r--app/services/twitter_publisher.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/twitter_publisher.rb b/app/services/twitter_publisher.rb
index 6e1d0848..fddfbca7 100644
--- a/app/services/twitter_publisher.rb
+++ b/app/services/twitter_publisher.rb
@@ -7,6 +7,8 @@ class TwitterPublisher
target.publish_message_with(create_client) unless Rails.env.test?
end
+ handle_asynchronously :publish
+
private
def create_client