From 625f1ee8b4bc4ed7d9e545a8bba3cdd3be59c249 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 18 Jul 2015 01:05:10 -0400 Subject: [PATCH] mount the resque app regardless of admin status if in development --- config/routes.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index c943e878..68f87c82 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -103,7 +103,15 @@ OpenneoImpressItems::Application.routes.draw do match '/sitemap.xml' => 'sitemap#index', :as => :sitemap, :format => :xml match '/robots.txt' => 'sitemap#robots', :as => :robots, :format => :text - authenticated :user, lambda { |u| u.admin? } do + def mount_resque mount Resque::Server, :at => '/resque' end + + if Rails.env.development? + mount_resque + else + authenticated :user, lambda { |u| u.admin? } do + mount_resque + end + end end \ No newline at end of file