diff --git a/Gemfile b/Gemfile index da39390..95cc94c 100644 --- a/Gemfile +++ b/Gemfile @@ -57,8 +57,6 @@ gem "kramdown-parser-gfm" gem "stackprof" gem "sentry-rails" -gem "web-console" - group :production do gem "cloudflare-rails" end @@ -70,6 +68,7 @@ group :development do gem "foreman" gem "pry-rails" gem "rubocop-shopify", require: false + gem "web-console" # Vendoring external assets. gem "httparty" diff --git a/test/app/controllers/api/root_controller.rb b/test/app/controllers/api/root_controller.rb index e88182d..f791955 100644 --- a/test/app/controllers/api/root_controller.rb +++ b/test/app/controllers/api/root_controller.rb @@ -35,7 +35,12 @@ def ip end def c - console + begin + console + rescue NameError + return api_response({message: "Console not available."}) + end + return api_response({message: "Console opened."}) end end diff --git a/test/config/application.rb b/test/config/application.rb index 1bea86f..b5a6524 100644 --- a/test/config/application.rb +++ b/test/config/application.rb @@ -68,11 +68,6 @@ class Application < Rails::Application config.solid_queue.connects_to = {database: {writing: :solid_queue, reading: :solid_queue}} end - if defined?(WebConsole) - config.web_console.permissions = "0.0.0.0/0" - config.web_console.development_only = false - end - RESTFramework.config.freeze_config = true # Use vendored assets if testing `sprockets` or `propshaft`.