mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
let's try loading onebox engines this way
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user