module ActionDispatch::Routing::Mapper::Resources

Public Instance Methods

resources_with_patch_fix(*resources) { || ... } click to toggle source
# 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