Commit 026f356f2428df571daecba9f874ab3531f0f03a

Authored by Rafael Manzo
1 parent 2bbf6a28

[Colab] Scoped omniauth callback statically

Devise does no accept the dynamic route. This solution implies that, if the
subdirectory changes the route should change as well and it will not answer
without the subdirectory.

Signed off by: Gustavo Jaruga <darksshades@hotmail.com>
Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
config/routes.rb
... ... @@ -54,8 +54,10 @@ Rails.application.routes.draw do
54 54 root "home#index"
55 55 end
56 56  
57   - # See comment above for devise_for
58   - devise_for :users, only: :omniauth_callbacks, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
  57 + scope "mezuro" do
  58 + # See comment above for devise_for
  59 + devise_for :users, only: :omniauth_callbacks, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
  60 + end
59 61  
60 62 # The priority is based upon order of creation: first created -> highest priority.
61 63 # See how all your routes lay out with "rake routes".
... ...