DEV: Drop the `Discourse.redis` monkey-patch (#123)

It's been over two years. I don't think we need this fallback anymore?
This commit is contained in:
Jarek Radosz 2022-01-11 00:09:13 +01:00 committed by GitHub
parent 776da654f9
commit b3379317c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -6,15 +6,6 @@
# authors: Robin Ward, Sam Saffron
# url: https://github.com/discourse/docker_manager
if !defined? ::Discourse.redis
# HACK: make Discourse.redis work on old versions of Discourse
module ::Discourse
def self.redis
$redis # rubocop:disable Style/GlobalVars
end
end
end
module ::DockerManager
# should be automatic, but something is weird
load File.expand_path(File.dirname(__FILE__)) + '/app/helpers/application_helper.rb'