Permalink
Browse files

Added resque as social stream background tasks manager.

  • Loading branch information...
1 parent bd81887 commit 595202653a9c84d33fd155f0602e22e9164fc3e5 @VictorSB VictorSB committed Jun 24, 2011
View
@@ -1,4 +1,7 @@
Rails.application.routes.draw do
+ #Background tasks
+ mount Resque::Server, :at => "/resque"
+
root :to => "frontpage#index"
match 'home' => 'home#index', :as => :home
@@ -17,5 +17,5 @@
# config.objects = [ :post, :comment ]
# Form modules to be loaded
- # config.activity_forms = [ :attachment, :other_module, :foo, :bar ]
+ # config.activity_forms = [ :document, :other_module, :foo, :bar ]
end
@@ -29,6 +29,8 @@
require 'acts_as_taggable_on/social_stream'
# HTML forms
require 'formtastic'
+#Background tasks
+require 'resque/server'
# Provides your Rails application with social network and activity stream support
module SocialStream
@@ -62,7 +64,7 @@ module TestHelpers
@@objects = [ :post, :comment ]
mattr_accessor :activity_forms
- #@@activity_forms = [:attachment]
+ ##@@activity_forms = [:document]
@@activity_forms = []
class << self
View
@@ -0,0 +1,3 @@
+require "resque/tasks"
+
+task "resque:setup" => :environment
@@ -42,7 +42,9 @@ Gem::Specification.new do |s|
s.add_runtime_dependency('acts-as-taggable-on','~> 2.0.6')
# HTML Forms
s.add_runtime_dependency('formtastic','~> 1.2.3')
-
+ #Gem dependencies
+ s.add_runtime_dependency('resque','~> 1.17.1')
+
# Freeze Rails to 3.0.7 until Mailboxer bug is fixed
s.add_runtime_dependency('rails', '3.1.0.rc4')

0 comments on commit 5952026

Please sign in to comment.