FEATURE: Create IE Support Plugin (#8520)

This core plugin, which could be split off in the future, allows us to load IE specific code on demand.

Co-authored-by: jjaffeux <j.jaffeux@gmail.com>
This commit is contained in:
Robin Ward
2019-12-11 09:07:22 -05:00
committed by GitHub
parent 5431ae0a17
commit 4abe4454dd
12 changed files with 517 additions and 397 deletions

View File

@ -84,7 +84,7 @@ class Plugin::Instance
def register_anonymous_cache_key(key, &block)
key_method = "key_#{key}"
add_to_class(Middleware::AnonymousCache, key_method, &block)
add_to_class(Middleware::AnonymousCache::Helper, key_method, &block)
Middleware::AnonymousCache.cache_key_segments[key] = key_method
Middleware::AnonymousCache.compile_key_builder
end

View File

@ -72,7 +72,8 @@ class Plugin::Metadata
"discourse-rss-polling",
"docker_manager",
"lazy-yt",
"poll"
"poll",
"discourse-internet-explorer"
])
FIELDS ||= [:name, :about, :version, :authors, :url, :required_version]