lib/blacklight_cql/engine.rb in blacklight_cql-1.0.0 vs lib/blacklight_cql/engine.rb in blacklight_cql-1.0.1

- old
+ new

@@ -16,9 +16,19 @@ # already created, AND the local app has had the opportunity to customize # our placeholder search_field. config.after_initialize do Blacklight.config[:search_fields] << BlacklightCql::SolrHelperExtension.pseudo_search_field 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).