mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
See the scope method for documentation for namespace's shallow_path option
This commit is contained in:
parent
b235519777
commit
95f41fe12e
1 changed files with 3 additions and 0 deletions
|
@ -625,6 +625,9 @@ module ActionDispatch
|
|||
# end
|
||||
#
|
||||
# Routing helpers such as +admin_posts_path+ will now be +sekret_posts_path+.
|
||||
#
|
||||
# [:shallow_path]
|
||||
# See the +scope+ method.
|
||||
def namespace(path, options = {})
|
||||
path = path.to_s
|
||||
options = { :path => path, :as => path, :module => path,
|
||||
|
|
Loading…
Reference in a new issue