mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 21:56:55 -04:00
Added helpful comment about days_until_maturity
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user