config/routes.rb in google_authentication-0.1.2 vs config/routes.rb in google_authentication-0.2.0
- old
+ new
@@ -1,9 +1,11 @@
Rails.application.routes.draw do
if GoogleAuthentication.define_routes?
# Devise + omniauth routes only if the given class exist
- devise_for GoogleAuthentication.devise_table, :controllers => {:omniauth_callbacks => "google_authentication/omniauth_callbacks"} do
+ devise_for GoogleAuthentication.devise_table, :controllers => {:omniauth_callbacks => "google_authentication/omniauth_callbacks"}
+
+ devise_scope GoogleAuthentication.model_name do
get 'sign_in', :to => 'google_authentication/sessions#new', :as => :new_user_session
get 'sign_out', :to => 'google_authentication/sessions#destroy', :as => :destroy_user_session
end
end