Added helpful comment about days_until_maturity

This commit is contained in:
Brenda Wallace
2017-04-25 15:28:23 +12:00
committed by Shiny
parent b820615081
commit 787fca138b

View File

@@ -138,6 +138,7 @@ class Planting < ActiveRecord::Base
private
def calc_and_set_days_before_maturity
# calculate the number of days, from planted_at, until maturity
if planted_at && finished_at
self.days_before_maturity = start_to_finish_diff
else