lib/blacklight_cql/engine.rb in blacklight_cql-1.2.1 vs lib/blacklight_cql/engine.rb in blacklight_cql-2.0.0
- old
+ new
@@ -4,10 +4,11 @@
require 'blacklight'
require 'blacklight_cql'
require 'blacklight_cql/solr_helper_extension'
require 'blacklight_cql/template_helper_extension'
+require 'blacklight_cql/explain_behavior'
module BlacklightCql
class Engine < Rails::Engine
@@ -20,20 +21,10 @@
hash = BlacklightCql::SolrHelperExtension.pseudo_search_field
config.add_search_field hash[:key], hash
end
end
-
-
- require 'blacklight_cql/route_sets'
- initializer "blacklight.cql.routes" do
- if defined? Blacklight::Routes
- Blacklight::Routes.send(:include, BlacklightCql::RouteSets)
- end
- end
-
-
-
+
# Wrapping in Dispatcher.to_prepare will, theoretically, take care of things
# working properly even in development mode with cache_classes=false (per-request
# class reloading).
config.to_prepare do
#Check in case CatalogController _hasn't_ really been re-loaded