1
0

Fixed Quantity parent list display for new/edit forms

This commit is contained in:
cryptogopher
2019-11-27 16:20:53 +01:00
parent 6433621fa7
commit 6e335c243a
6 changed files with 20 additions and 16 deletions

View File

@@ -19,6 +19,7 @@ class Quantity < ActiveRecord::Base
after_initialize do
if new_record?
self.domain ||= :diet
self.primary = false if self.primary.nil?
end
end