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