From 64652f98abc0fae5969531f6a26471d411bcd389 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 9 Jan 2017 12:49:55 -0500 Subject: [PATCH] Experimental feature to load gemfiles from plugins --- Gemfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Gemfile b/Gemfile index a0a84196212..e4fbb831d00 100644 --- a/Gemfile +++ b/Gemfile @@ -191,3 +191,10 @@ group :profile do # if you need to profile, uncomment out this line # gem 'rack-perftools_profiler', require: 'rack/perftools_profiler', platform: :mri_19 end + +# Experiment feature to load gemfiles from plugins +if ENV['DISCOURSE_PLUGIN_GEMFILES'] + Dir.glob(File.join(File.dirname(__FILE__), 'plugins', '*', "Gemfile")) do |gemfile| + eval(IO.read(gemfile), binding) + end +end