config/routes.rb in social_stream-base-0.9.7 vs config/routes.rb in social_stream-base-0.9.8
- old
+ new
@@ -1,7 +1,14 @@
Rails.application.routes.draw do
#Background tasks
- mount Resque::Server, :at => "/resque"
+ resque_constraint = lambda do |request|
+ #request.env['warden'].authenticate? and request.env['warden'].user.admin?
+ true
+ end
+
+ constraints resque_constraint do
+ mount Resque::Server, :at => "/resque"
+ end
root :to => "frontpage#index"
match 'home' => 'home#index', :as => :home
match 'home' => 'home#index', :as => :user_root # devise after_sign_in_path_for