1
0

Added toggling Quantity primary-ness

This commit is contained in:
cryptogopher
2019-10-26 01:03:06 +02:00
parent baadd647f8
commit 2176ef77f3
5 changed files with 16 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ en:
field_domain: 'Domain'
field_parent_quantity: 'Parent'
field_shortname: 'Short name'
button_toggle: 'Toggle'
activerecord:
errors:
models:

View File

@@ -11,7 +11,9 @@ resources :projects do
get 'nutrients', on: :collection
end
resources :sources, :only => [:index, :create, :destroy]
resources :quantities, :only => [:index, :create, :destroy]
resources :quantities, :only => [:index, :create, :destroy] do
post 'toggle', on: :member
end
resources :units, :only => [:index, :create, :destroy]
end
end