2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

let's try loading onebox engines this way

This commit is contained in:
Régis Hanol 2016-10-25 01:25:44 +02:00
parent 70b79328ab
commit 08d53b32ca

View file

@ -1,6 +1,4 @@
Dir["#{Rails.root}/lib/onebox/engine/*_onebox.rb"].sort.each {|f| Dir["#{Rails.root}/lib/onebox/engine/*_onebox.rb"].sort.each { |f| require f }
require_dependency(f.split('/')[-3..-1].join('/'))
}
module Oneboxer module Oneboxer
# keep reloaders happy # keep reloaders happy