Skip to content

Commit

Permalink
Revert nonsense.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregschmit committed Oct 11, 2024
1 parent 7d3ba2e commit d056fd4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ gem "kramdown-parser-gfm"
gem "stackprof"
gem "sentry-rails"

gem "web-console"

group :production do
gem "cloudflare-rails"
end
Expand All @@ -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"
Expand Down
7 changes: 6 additions & 1 deletion test/app/controllers/api/root_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 0 additions & 5 deletions test/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit d056fd4

Please sign in to comment.