blob: f8ebad587a3a1832a74a7974ff1005e4d6685895 (
plain)
1
2
3
4
5
6
7
8
9
|
class HearthAmenity < ApplicationRecord
include HasWhatnot
validates :gid, :name, :description, presence: true
def construct_activity(level)
Activity.find_by_gid("construct_#{self.name.underscore}_level#{level}")
end
end
|