Updated Quantity to use Formula
and upgraded controller actions to match Measurement/Ingredient
This commit is contained in:
@@ -33,7 +33,9 @@ en:
|
||||
attributes:
|
||||
parent:
|
||||
parent_domain_mismatch: 'parent quantity has to be in the same domain'
|
||||
formula:
|
||||
formula:
|
||||
attributes:
|
||||
code:
|
||||
disallowed_syntax: 'cannot be parsed: %{syntax}'
|
||||
disallowed_token: 'includes disallowed token: "%{token}"'
|
||||
disallowed_keyword: 'includes disallowed keyword: "%{keyword}"'
|
||||
|
||||
@@ -25,7 +25,7 @@ resources :projects, shallow: true do
|
||||
end
|
||||
end
|
||||
resources :sources, only: [:index, :create, :destroy]
|
||||
resources :quantities, only: [:index, :create, :edit, :update, :destroy] do
|
||||
resources :quantities, only: [:index, :new, :create, :edit, :update, :destroy] do
|
||||
member do
|
||||
post 'move/:direction', to: 'quantities#move', as: :move
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user