mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:42:02 +08:00
let's try loading onebox engines this way
This commit is contained in:
parent
70b79328ab
commit
08d53b32ca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user