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|
require_dependency(f.split('/')[-3..-1].join('/'))
}
Dir["#{Rails.root}/lib/onebox/engine/*_onebox.rb"].sort.each { |f| require f }
module Oneboxer
# keep reloaders happy