Adding controller actions and routes for pausing and unpausing a standing order

This commit is contained in:
Rob Harrington
2016-12-07 16:34:27 +11:00
parent 961df756c5
commit 8ff9ffbc38
5 changed files with 109 additions and 3 deletions

View File

@@ -179,6 +179,8 @@ Openfoodnetwork::Application.routes.draw do
resources :standing_orders, only: [:index, :new, :create, :edit, :update] do
put :cancel, on: :member
put :pause, on: :member
put :unpause, on: :member
end
resources :standing_line_items, only: [], format: :json do