1
0

Updated Quantity to use Formula

and upgraded controller actions to match Measurement/Ingredient
This commit is contained in:
cryptogopher
2020-02-19 17:57:29 +01:00
parent 544c0c5293
commit b7b7401833
12 changed files with 90 additions and 73 deletions

View File

@@ -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}"'

View File

@@ -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