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