1
0

Added ingredient index and form

This commit is contained in:
cryptogopher
2019-09-13 14:48:43 +02:00
parent c916e7fd3c
commit c82f903360
9 changed files with 77 additions and 22 deletions

View File

@@ -1,8 +1,10 @@
module BodyTracking
module ProjectPatch
Project.class_eval do
has_many :units, dependent: :destroy
has_many :ingredients, dependent: :destroy
has_many :quantities, -> { order "lft" }, dependent: :destroy
has_many :units, dependent: :destroy
end
end
end