1
0

Disallowed moving quantity into parent/child relationship if domains differ

Generalized quantity up/down/left/right actions into 'move'
This commit is contained in:
cryptogopher
2019-11-22 22:43:11 +01:00
parent 0820a90897
commit 8c073494e5
5 changed files with 36 additions and 58 deletions

View File

@@ -20,7 +20,7 @@ resources :projects do
resources :sources, :only => [:index, :create, :destroy]
resources :quantities, :only => [:index, :create, :destroy] do
post 'toggle', on: :member
post 'up', 'down', 'left', 'right', on: :member
post 'move/:direction', to: 'quantities#move', as: :move, on: :member
get 'filter', on: :collection
end
resources :units, :only => [:index, :create, :destroy]