Experimental feature to load gemfiles from plugins

This commit is contained in:
Robin Ward 2017-01-09 12:49:55 -05:00
parent c2a85440b6
commit 64652f98ab
1 changed files with 7 additions and 0 deletions

View File

@ -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