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:
parent
70b79328ab
commit
08d53b32ca
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue