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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user