Commit 7d6d098353098c17921609e6b5205edcdf9ed826
Committed by
Rafael Reggiani Manzo
1 parent
dd5253af
[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 | 52 | root "home#index" |
53 | 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 | 60 | # The priority is based upon order of creation: first created -> highest priority. |
59 | 61 | # See how all your routes lay out with "rake routes". | ... | ... |