1
0

WIP Targets #edit/#update

NestedUniqueness properly restores collection.target
This commit is contained in:
cryptogopher
2021-04-23 19:19:44 +02:00
parent 37e3b98788
commit bea0a8371d
9 changed files with 93 additions and 40 deletions

View File

@@ -11,9 +11,10 @@ resources :projects, shallow: true do
member do
post 'toggle_exposure', controller: :targets
end
resources :targets, shallow: true, except: [:show, :edit, :update] do
resources :targets, except: [:show, :edit, :update] do
collection do
get 'edit/:date', action: :edit, as: :edit
patch '', action: :update
post 'reapply/:date', action: :reapply, as: :reapply
end
end