diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-08 15:31:56 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-08 15:31:56 -0600 |
commit | 3d91d7f0a2bd4b1e104dd8847a2fe9f206c916ca (patch) | |
tree | cf83018b5be9414d9177fc0be61d5f6542f7d0af /actionpack/lib | |
parent | 1fc58a889d72e9a36167b41fc3cd055c1f58774e (diff) | |
download | rails-3d91d7f0a2bd4b1e104dd8847a2fe9f206c916ca.tar.gz rails-3d91d7f0a2bd4b1e104dd8847a2fe9f206c916ca.tar.bz2 rails-3d91d7f0a2bd4b1e104dd8847a2fe9f206c916ca.zip |
Routes added under resource collection should be prefixed with
resource collection name
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 7647bdeb5d..513c6a5c5f 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -369,7 +369,7 @@ module ActionDispatch end with_scope_level(:collection) do - scope(:name_prefix => parent_resource.member_name, :as => "") do + scope(:name_prefix => parent_resource.collection_name, :as => "") do yield end end |