Commit 0e508fdbaa8eb8e948676320f543106c8f3b3b96
1 parent
a707ad44
[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,8 +51,10 @@ Rails.application.routes.draw do | ||
51 | root "home#index" | 51 | root "home#index" |
52 | end | 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 | # The priority is based upon order of creation: first created -> highest priority. | 59 | # The priority is based upon order of creation: first created -> highest priority. |
58 | # See how all your routes lay out with "rake routes". | 60 | # See how all your routes lay out with "rake routes". |