Sha256: 8f18a04d4742a7b8e44d5166dc2955bfffbe830c8f2047352a151e56a60e3234
Contents?: true
Size: 856 Bytes
Versions: 2
Compression:
Stored size: 856 Bytes
Contents
if Authenticate.configuration.routes_enabled? Rails.application.routes.draw do resource :session, controller: 'authenticate/sessions', only: [:create, :new, :destroy] resources :passwords, controller: 'authenticate/passwords', only: [:new, :create] user_model = Authenticate.configuration.user_model_route_key user_actions = Authenticate.configuration.allow_sign_up? ? [:create] : [] resource user_model, controller: 'authenticate/users', only: user_actions do resources :passwords, controller: 'authenticate/passwords', only: [:edit, :update] end 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
authenticate-0.7.3 | config/routes.rb |
authenticate-0.7.2 | config/routes.rb |