diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2014-03-16 09:15:52 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2014-03-16 09:35:35 +0000 |
commit | bb0518891c4c7cc40ff01d90983b83beb61242af (patch) | |
tree | 10b9f7ed28eb6cfdd968c7c6bb6a8fa3a8b1421f /actionpack/lib/action_pack.rb | |
parent | af981764686c28db40305adf9cfc308f2e20ab50 (diff) | |
download | rails-bb0518891c4c7cc40ff01d90983b83beb61242af.tar.gz rails-bb0518891c4c7cc40ff01d90983b83beb61242af.tar.bz2 rails-bb0518891c4c7cc40ff01d90983b83beb61242af.zip |
Use nested_scope? not shallow? to determine whether to copy options
The method `shallow?` returns false if the parent resource is a singleton so
we need to check if we're not inside a nested scope before copying the :path
and :as options to their shallow equivalents.
Fixes #14388.
Diffstat (limited to 'actionpack/lib/action_pack.rb')
0 files changed, 0 insertions, 0 deletions