lib/devise/rails/routes.rb in devise-3.2.1 vs lib/devise/rails/routes.rb in devise-3.2.2

- old
+ new

@@ -391,16 +391,16 @@ Devise does not support scoping omniauth callbacks under a dynamic segment and you have set #{mapping.fullpath.inspect}. You can work around by passing `skip: :omniauth_callbacks` and manually defining the routes. Here is an example: match "/users/auth/:provider", - :constraints => { :provider => /\Agoogle|facebook\z/ }, + :constraints => { :provider => /\A(google|facebook)\z/ }, :to => "devise/omniauth_callbacks#passthru", :as => :omniauth_authorize, :via => [:get, :post] match "/users/auth/:action/callback", - :constraints => { :action => /\Agoogle|facebook\z/ }, + :constraints => { :action => /\A(google|facebook)\z/ }, :to => "devise/omniauth_callbacks", :as => :omniauth_callback, :via => [:get, :post] ERROR end