Experimental feature to load gemfiles from plugins
This commit is contained in:
parent
c9ea04ffd2
commit
394c1cfda0
7
Gemfile
7
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
|
||||
|
||||
Reference in New Issue
Block a user