lib/spotlight/engine.rb in blacklight-spotlight-0.5.0 vs lib/spotlight/engine.rb in blacklight-spotlight-0.6.0
- old
+ new
@@ -123,14 +123,16 @@
facet: false,
'facet.field' => [] }
Spotlight::Engine.config.default_browse_index_view_type = :gallery
- # Field containing the last modified date for a Solr document
- Blacklight::Configuration.default_values[:index].timestamp_field ||= 'timestamp'
+ initializer 'blacklight.configuration' do
+ # Field containing the last modified date for a Solr document
+ Blacklight::Configuration.default_values[:index].timestamp_field ||= 'timestamp'
- # Field containing the last modified date for a Solr document
- Blacklight::Configuration.default_values[:browse] ||= Blacklight::OpenStructWithHashAccess.new(document_actions: [])
+ # Default configuration for the browse view
+ Blacklight::Configuration.default_values[:browse] ||= Blacklight::OpenStructWithHashAccess.new(document_actions: [])
+ end
# make blacklight configuration play nice with bootstrap_form
Blacklight::OpenStructWithHashAccess.send(:extend, ActiveModel::Translation)
end
end