From f62c26d1dade224871a3043e1e47963b358bd345 Mon Sep 17 00:00:00 2001 From: David Gay Date: Tue, 25 May 2021 20:31:41 -0400 Subject: stop_activity --- app/controllers/game_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/controllers') diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb index f1387e0..c5bfdbc 100644 --- a/app/controllers/game_controller.rb +++ b/app/controllers/game_controller.rb @@ -1,4 +1,9 @@ class GameController < ApplicationController + def stop_activity + current_char.stop_activity + redirect_to locations_path + end + def finish_activity @results = [] return unless current_char.activity_time_remaining <= 0 -- cgit v1.2.3