diff options
author | David Gay <david@davidgay.org> | 2021-06-03 19:04:14 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-03 19:04:14 -0400 |
commit | 56df91158b8aaeea1b7caab27da9f739129f52c9 (patch) | |
tree | ad353bf74a89573a7f8382ff8b2b296583a6686b /app/controllers | |
parent | 60d197a4917432381c05633913cdce318d6840d9 (diff) |
Plug in Spicework
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/characters/hearth_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/characters/hearth_controller.rb b/app/controllers/characters/hearth_controller.rb index 8e32ab0..86757d8 100644 --- a/app/controllers/characters/hearth_controller.rb +++ b/app/controllers/characters/hearth_controller.rb @@ -6,6 +6,7 @@ class Characters::HearthController < ApplicationController @amenity_activities = { forge: [], labratory: [], + spicebench: [], } Activity.where("gid like ?", "craft_%").each do |activity| @@ -17,6 +18,8 @@ class Characters::HearthController < ApplicationController @amenity_activities[:forge].push(activity) && next when "labratory" @amenity_activities[:labratory].push(activity) && next + when "spicebench" + @amenity_activities[:spicebench].push(activity) && next else raise "Invalid amenity gid (#{requirement_data[:gid]}" end |