Commit eb1e8713d4f3889fddd5091b3f48c8ff4f38ea53

Authored by Rafael Manzo
1 parent 4211de4d

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