config/routes.rb in authenticate-0.2.1 vs config/routes.rb in authenticate-0.2.2
- old
+ new
@@ -2,10 +2,11 @@
Rails.application.routes.draw do
resource :session, controller: 'authenticate/sessions', only: [:create, :new, :destroy]
resources :passwords, controller: 'authenticate/passwords', only: [:new, :create]
user_actions = Authenticate.configuration.allow_sign_up? ? [:new, :create] : []
- resource :users, controller: 'authenticate/users', only: user_actions do
+ user_model = Authenticate.configuration.user_model_route_key
+ resource user_model, controller: 'authenticate/users', only: user_actions do
resources :passwords, controller: 'authenticate/passwords', only: [:edit, :update]
end
get '/sign_up', to: 'authenticate/users#new', as: 'sign_up'
get '/sign_in', to: 'authenticate/sessions#new', as: 'sign_in'