1
0

Added importing quantities

Fixed display order of project quantities
This commit is contained in:
cryptogopher
2019-09-09 21:14:56 +02:00
parent ddac5d9aa8
commit 30314607ae
3 changed files with 17 additions and 3 deletions

View File

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