module SmartdownPlugins
  module AnimalExampleMultiple
    def self.years_until_training_forgotten(training_date)
      (Date.parse(training_date).year + 20) - Time.zone.now.year
    end
  end
end

module SmartdownPlugins
  module AnimalExampleMultiple
    def self.years_until_training_forgotten(training_date)
      training_date.value.year + 20 - Time.zone.now.year
    end
  end
end

Fix broken plugin in animal example multiple
Fix broken plugin in animal example multiple

Date parsing is now done as part of the smartdown answer.
Date.parse would fail on Smartdown::Model::Answer::Date object.
