config/routes.rb in tawork-0.0.8 vs config/routes.rb in tawork-0.0.9
- old
+ new
@@ -1,15 +1,21 @@
Rails.application.class.routes.draw do
# Mercury::Engine.routes
- devise_for :users, controllers: { omniauth_callbacks: "users/omniauth_callbacks" }
+ if !TAWORK_CONFIG['custom_devise_routes']
+ devise_for :users, controllers: { omniauth_callbacks: "users/omniauth_callbacks" }
+ end
root 'wiki/pages#index'
get 'sink/index' #=> "sink#index"
get 'sink/components' #=> "sink#components"
get 'search/mentions' => "search#mentions"
get 'wiki' => "wiki/pages#index"
+ namespace :work do
+ resources :users, only: [:index, :new, :create]
+ end
+
namespace :wiki do
resources :pages do
member do
get :subpages_dropdown
get :combined