Experimental feature to load gemfiles from plugins
This commit is contained in:
parent
c2a85440b6
commit
64652f98ab
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
|
||||
|
|
Loading…
Reference in New Issue