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