1
0
Fork 0
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:
Ryan Bigg 2010-11-13 11:16:06 +08:00
parent b235519777
commit 95f41fe12e

View file

@ -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,