1. 29 5月, 2014 7 次提交
  2. 28 5月, 2014 4 次提交
  3. 27 5月, 2014 1 次提交
  4. 26 5月, 2014 3 次提交
  5. 25 5月, 2014 4 次提交
  6. 24 5月, 2014 4 次提交
  7. 23 5月, 2014 1 次提交
  8. 14 5月, 2014 2 次提交
  9. 05 5月, 2014 1 次提交
  10. 02 5月, 2014 1 次提交
  11. 01 5月, 2014 1 次提交
  12. 11 4月, 2014 1 次提交
    • A
      Only make deeply nested routes shallow when parent is shallow · e10f26f9
      Andrew White 提交于
      Since `:shallow` may be set at any point in the resource nesting we should
      only make the new and collection routes shallow when the parent is shallow.
      
      This is a bit of a hack but until the mapper is refactored to an object graph
      instead of a hash of merged values it's the best we can do.
      
      Fixes #14684.
      e10f26f9
  13. 21 3月, 2014 1 次提交
  14. 16 3月, 2014 1 次提交
  15. 09 3月, 2014 4 次提交
    • A
      Copy shallow options from normal options when using scope · af4c9b78
      Andrew White 提交于
      If the options :shallow_prefix and :shallow_path are not set in the
      scope options then copy them from the normal :as and :path options
      if they are set.
      af4c9b78
    • A
      Pull namespace defaults out of the options hash · 8711086f
      Andrew White 提交于
      If a developer has specified either :path or :as in the options hash then
      these should be used as the defaults for :shallow_path and :shallow_prefix.
      
      Fixes #14241.
      8711086f
    • A
      Only use shallow nested scope when depth is > 1 · dcc91a04
      Andrew White 提交于
      By tracking the depth of resource nesting we can push the need for nested
      shallow scoping to only those routes that are nested more than one deep.
      This allows us to keep the fix for #12498 and fix the regression in #14224.
      
      Fixes #14224.
      dcc91a04
    • A
      Move setting :scope_level_resource to resource_scope · ed0fb4ae
      Andrew White 提交于
      Originally with_scope_level was exclusively for managing scope levels with
      resources, however it is now used for other things so it makes more sense
      to move the responsibility for setting the :scope_level_resource to the
      resource_scope method. This eliminates repeatedly setting it to the same
      resource as each resource method scope is evaluated.
      ed0fb4ae
  16. 10 2月, 2014 1 次提交
    • A
      Set the :shallow_path as each scope is generated · 462d7cb3
      Andrew White 提交于
      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.
      462d7cb3
  17. 25 1月, 2014 1 次提交
  18. 20 1月, 2014 2 次提交