From b188c30925a59e43904f2ce0ab76fba4e1c78e38 Mon Sep 17 00:00:00 2001 From: David McClure Date: Sat, 25 Feb 2017 09:27:42 -0800 Subject: [PATCH] FIX: Import scripts were failing to load onebox sanitize config --- lib/oneboxer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oneboxer.rb b/lib/oneboxer.rb index cef2fe53df2..c117331f229 100644 --- a/lib/oneboxer.rb +++ b/lib/oneboxer.rb @@ -1,4 +1,4 @@ -require_dependency "./lib/onebox/discourse_onebox_sanitize_config" +require_dependency "#{Rails.root}/lib/onebox/discourse_onebox_sanitize_config" Dir["#{Rails.root}/lib/onebox/engine/*_onebox.rb"].sort.each { |f| require f } module Oneboxer