1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
body_tracking/lib/body_tracking/project_patch.rb
cryptogopher 30314607ae Added importing quantities
Fixed display order of project quantities
2019-09-09 21:14:56 +02:00

10 lines
198 B
Ruby

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