Removing method since it is defined in predict planting

This commit is contained in:
Martina Simicic
2020-02-03 19:59:49 +01:00
committed by Brenda Wallace
parent fc1bd1893c
commit 10008ca30d

View File

@@ -80,10 +80,6 @@ class Planting < ApplicationRecord
in: PLANTED_FROM_VALUES, message: "%<value>s is not a valid planting method"
}
def age_in_days
(Time.zone.today - planted_at).to_i if planted_at.present?
end
def planting_slug
[
owner.login_name,