1
0

ColumnView fixes

This commit is contained in:
cryptogopher
2019-12-21 12:18:31 +01:00
parent 0c0ca1d286
commit 530dba0612
8 changed files with 29 additions and 25 deletions

View File

@@ -10,7 +10,8 @@ module BodyTracking
has_many :units, dependent: :destroy
def nutrients_column_view
self.column_views.find_or_create_by(name: 'Nutrients', domain: :diet)
self.column_views
.find_or_create_by(name: 'Nutrients', domain: ColumnView.domains[:diet])
end
end
end