Commit e60eca274b6d1c4aa73ece541b990cf098bd1786

Authored by Rafael Manzo
Committed by Diego Camarinha
1 parent 55b7465b

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