Commit 8d1e167c2e3108f565d3f6f3e46207a38939866b

Authored by Rafael Manzo
1 parent 17f58f1f

[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
@@ -52,8 +52,10 @@ Rails.application.routes.draw do @@ -52,8 +52,10 @@ Rails.application.routes.draw do
52 root "home#index" 52 root "home#index"
53 end 53 end
54 54
55 - # See comment above for devise_for  
56 - devise_for :users, only: :omniauth_callbacks, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" } 55 + scope "mezuro" do
  56 + # See comment above for devise_for
  57 + devise_for :users, only: :omniauth_callbacks, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
  58 + end
57 59
58 # The priority is based upon order of creation: first created -> highest priority. 60 # The priority is based upon order of creation: first created -> highest priority.
59 # See how all your routes lay out with "rake routes". 61 # See how all your routes lay out with "rake routes".