aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-11-13 11:16:06 +0800
committerRyan Bigg <radarlistener@gmail.com>2010-11-13 11:16:06 +0800
commit95f41fe12e7680459351be633a171abf26beac1a (patch)
treede6bca7a169671b56bab5bc78067bea58b20144b /actionpack
parentb235519777b921c0ecf4e20fbeb5f5fe49459775 (diff)
downloadrails-95f41fe12e7680459351be633a171abf26beac1a.tar.gz
rails-95f41fe12e7680459351be633a171abf26beac1a.tar.bz2
rails-95f41fe12e7680459351be633a171abf26beac1a.zip
See the scope method for documentation for namespace's shallow_path option
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index c3f778a70f..cc013ac072 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -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,