mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
adding docs for the namespace behavior
This commit is contained in:
parent
5fb5efbd42
commit
736654e1bc
1 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,10 @@ module ActionDispatch::Routing
|
|||
# Will use publisher/sessions controller instead of devise/sessions controller. You can revert
|
||||
# this by providing the :module option to devise_for.
|
||||
#
|
||||
# Also pay attention that when you use a namespace it will affect all the helpers and methods for controllers
|
||||
# and views. For example, using the above setup you'll end with following methods:
|
||||
# current_publisher_account, authenticate_publisher_account!, pusblisher_account_signed_in, etc.
|
||||
#
|
||||
# * :skip => tell which controller you want to skip routes from being created:
|
||||
#
|
||||
# devise_for :users, :skip => :sessions
|
||||
|
|
Loading…
Add table
Reference in a new issue