[refs #510] Remove double admin namespace

This commit is contained in:
konstantin.grabar 2012-06-01 17:30:11 +04:00
parent 7d58937149
commit 4fb74cdd50
1 changed files with 4 additions and 5 deletions

View File

@ -1,11 +1,6 @@
# -*- encoding : utf-8 -*-
Rosa::Application.routes.draw do
require 'resque/server'
namespace :admin do
constraints CanAccessResque do
mount Resque::Server, at: 'resque'
end
end
devise_scope :users do
get '/users/auth/:provider' => 'users/omniauth_callbacks#passthru'
@ -29,6 +24,10 @@ Rosa::Application.routes.draw do
end
namespace :admin do
constraints CanAccessResque do
mount Resque::Server, at: 'resque'
end
resources :users do
get :list, :on => :collection
end