1
0

Fixed importing Foods with QuantityValue

Fixed double flash when not followed by request
Added Food#destroy error reporting
Simplified prepare_meals with no ingredients
Renamed scope on item with subitems: subitems -> with_subitems
This commit is contained in:
cryptogopher
2020-05-20 23:33:34 +02:00
parent fa9c329a81
commit a416e1ce9b
13 changed files with 29 additions and 17 deletions

View File

@@ -50,6 +50,8 @@ class Formula < ActiveRecord::Base
def lastBefore(timepoints)
self.map{ BigDecimal(2000) }
last_timepoint = timepoints.max
@quantity.quantity_values.includes(:registry)
end
end