From 0371c5b9a0303d24f043ae84f827f760ac8680ae Mon Sep 17 00:00:00 2001 From: David Gay Date: Fri, 4 Jun 2021 10:39:28 -0400 Subject: Adjust error message since Rest section has been removed from Character view --- app/controllers/application_controller.rb | 2 +- app/controllers/game_controller.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 181841d..81fb58a 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -18,7 +18,7 @@ class ApplicationController < ActionController::Base private def start_activity(activity) if current_char.resting? - flash[:alert] = "You can't do anything while you're resting. Go to the Character page to stop resting." + flash[:alert] = "You can't do anything while you're resting." redirect_to character_path(current_char) and return end queued_actions = params[:actions].present? ? params[:actions].to_i - 1 : nil diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb index 62ab77b..6205c17 100644 --- a/app/controllers/game_controller.rb +++ b/app/controllers/game_controller.rb @@ -27,8 +27,7 @@ class GameController < ApplicationController activity = current_char.activity if current_char.resting? - @results.replace([{ type: "error", message: "You can't do anything while you're resting. Go to the Character" \ - " page to stop resting." }]) + @results.replace([{ type: "error", message: "You can't do anything while you're resting." }]) current_char.stop_activity return end -- cgit v1.2.3