lib/spotlight/engine.rb in blacklight-spotlight-0.0.2 vs lib/spotlight/engine.rb in blacklight-spotlight-0.0.3

- old
+ new

@@ -4,17 +4,24 @@ require 'spotlight/rails/routes' module Spotlight class Engine < ::Rails::Engine isolate_namespace Spotlight - initializer "require dependencies" do + # Breadcrumbs on rails must be required outside of an initializer or it doesn't get loaded. + require 'breadcrumbs_on_rails' + require 'carrierwave' + + config.autoload_paths += %W( + #{config.root}/app/builders + ) + + initializer "spotlight.initialize" do require 'sir-trevor-rails' - require 'carrierwave' - require 'carrierwave/orm/activerecord' require 'cancan' require 'bootstrap_form' require 'acts-as-taggable-on' end + Blacklight::Engine.config.inject_blacklight_helpers = false end end