Adds the controller method exposures in order to register exposure flows for later use. We specifically need the shallow_parent_exposure to detect if the parents param ids exist or not.
Adds the :shallow_parent and :shallow_child options. With shallow routes, parents need to be found via their shallow child when the child id params exist (edit, update, destroy) - similarly, children need to be scoped by their shallow parent when the parent id params exist (index, show, new, create).
No tests yet as I don't want to waste time on them if you don't like this as a feature.
exposures
in order to register exposure flows for later use. We specifically need theshallow_parent_exposure
to detect if the parents param ids exist or not.:shallow_parent
and:shallow_child
options. With shallow routes, parents need to be found via their shallow child when the child id params exist (edit, update, destroy) - similarly, children need to be scoped by their shallow parent when the parent id params exist (index, show, new, create).No tests yet as I don't want to waste time on them if you don't like this as a feature.
Closes #188