aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2014-02-09 10:36:45 -0800
committerAndrew White <andyw@pixeltrix.co.uk>2014-02-09 10:46:07 -0800
commit462d7cb3148e95c9a793d33fd882a99f0d9c57c2 (patch)
treeeadb841c493f8c85f9411cb3bf7e92527fcf868d /Rakefile
parent72e11abeaf6500fa81ee2260fa446fcabcc2a944 (diff)
downloadrails-462d7cb3148e95c9a793d33fd882a99f0d9c57c2.tar.gz
rails-462d7cb3148e95c9a793d33fd882a99f0d9c57c2.tar.bz2
rails-462d7cb3148e95c9a793d33fd882a99f0d9c57c2.zip
Set the :shallow_path as each scope is generated
If we set :shallow_path when shallow is called it can result in incorrect paths if the resource is inside a namespace because namespace itself sets the :shallow_path option to the namespace path. We fix this by removing the :shallow_path option from shallow as that should only be turning shallow routes on and not otherwise affecting the scope. To do this we need to treat the :shallow option to resources differently to other scope options and move it to before the nested block is called. This change also has the positive side effect of making the behavior of the :shallow option consistent with the shallow method. Fixes #12498.
Diffstat (limited to 'Rakefile')
0 files changed, 0 insertions, 0 deletions