config/routes.rb in authenticate-0.7.0 vs config/routes.rb in authenticate-0.7.1

- old
+ new

@@ -7,10 +7,13 @@ 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' get '/sign_out', to: 'authenticate/sessions#destroy', as: 'sign_out' + + if Authenticate.configuration.allow_sign_up? + get '/sign_up', to: 'authenticate/users#new', as: 'sign_up' + end end end