From b0998224427594acda8e4e8419a945c20c062568 Mon Sep 17 00:00:00 2001 From: David Gay Date: Thu, 20 May 2021 18:39:20 -0400 Subject: Implement learned activities --- app/models/activity.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/models/activity.rb') diff --git a/app/models/activity.rb b/app/models/activity.rb index b8eeed7..7272a3b 100644 --- a/app/models/activity.rb +++ b/app/models/activity.rb @@ -4,6 +4,8 @@ class Activity < ApplicationRecord belongs_to :location, optional: true validates :gid, :name, :description, presence: true + attribute :innate, :boolean, default: false + def cost_string requirements = [] self.whatnot[:cost].each do |cost| -- cgit v1.2.3