Module: ActionDispatch::Routing::Mapper::Resources
- Defined in:
- lib/patch-patch.rb
Defined Under Namespace
Classes: Resource
Instance Method Summary collapse
Instance Method Details
#resources_with_patch_fix(*resources, &block) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/patch-patch.rb', line 7 def resources_with_patch_fix(*resources, &block) resources_without_patch_fix(*resources) do yield if block_given? patch '/', on: :member, action: :partial_update if parent_resource.actions.include?(:partial_update) end end |