lib/generators/blacklight/blacklight_generator.rb in blacklight-3.4.1 vs lib/generators/blacklight/blacklight_generator.rb in blacklight-3.4.2

- old
+ new

@@ -140,11 +140,14 @@ copy_file "solr_document.rb", "app/models/solr_document.rb" copy_file "catalog_controller.rb", "app/controllers/catalog_controller.rb" end def inject_blacklight_routes - route('root :to => "catalog#index"') + # These will end up in routes.rb file in reverse order + # we add em, since each is added at the top of file. + # we want "root" to be FIRST for optimal url generation. route('Blacklight.add_routes(self)') + route('root :to => "catalog#index"') end def add_sass_configuration gem 'compass-rails', '~> 1.0.0', :group => :assets gem 'compass-susy-plugin', '~> 0.9.0', :group => :assets