From 10008ca30dfd84c9394859923d24ef66c1552daa Mon Sep 17 00:00:00 2001 From: Martina Simicic <922964+simicic@users.noreply.github.com> Date: Mon, 3 Feb 2020 19:59:49 +0100 Subject: [PATCH] Removing method since it is defined in predict planting --- app/models/planting.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/models/planting.rb b/app/models/planting.rb index 7c216bd03..dc73b196c 100644 --- a/app/models/planting.rb +++ b/app/models/planting.rb @@ -80,10 +80,6 @@ class Planting < ApplicationRecord in: PLANTED_FROM_VALUES, message: "%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,