Commit 2ac1dae9b11eea9aa642c0f54b4d3dc10656d473

Authored by Rafael Manzo
Committed by Eduardo Silva Araújo
1 parent 6b89f63e
Exists in colab

[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,8 +49,10 @@ Rails.application.routes.draw do
49 root "home#index" 49 root "home#index"
50 end 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 # The priority is based upon order of creation: first created -> highest priority. 57 # The priority is based upon order of creation: first created -> highest priority.
56 # See how all your routes lay out with "rake routes". 58 # See how all your routes lay out with "rake routes".