diff --git a/lib/blacklight/configuration.rb b/lib/blacklight/configuration.rb index db1e8c4d8..6fb8a1f34 100644 --- a/lib/blacklight/configuration.rb +++ b/lib/blacklight/configuration.rb @@ -147,7 +147,7 @@ def initialized_default_configuration? # @return [Blacklight::Configuration::ViewConfig::Index] property :index, default: ViewConfig::Index.new( # document presenter class used by helpers and views - document_presenter_class: nil, + document_presenter_class: Blacklight::IndexPresenter, # document presenter used for json responses json_presenter_class: Blacklight::JsonPresenter, # component class used to render a document @@ -191,7 +191,7 @@ def initialized_default_configuration? # @return [Blacklight::Configuration::ViewConfig::Show] property :show, default: ViewConfig::Show.new( # document presenter class used by helpers and views - document_presenter_class: nil, + document_presenter_class: Blacklight::ShowPresenter, document_component: Blacklight::DocumentComponent, document_thumbnail_component: nil, show_tools_component: Blacklight::Document::ShowToolsComponent, diff --git a/lib/blacklight/configuration/view_config.rb b/lib/blacklight/configuration/view_config.rb index bda3c307c..7560c7b7f 100644 --- a/lib/blacklight/configuration/view_config.rb +++ b/lib/blacklight/configuration/view_config.rb @@ -81,14 +81,6 @@ class Show < ViewConfig # @return [Hash] Default route parameters for 'show' requests. # Set this to a hash with additional arguments to merge into the route, # or set `controller: :current` to route to the current controller. - - def document_presenter_class - super || Blacklight::ShowPresenter - end - - def to_h - super.merge(document_presenter_class: document_presenter_class) - end end class Index < ViewConfig @@ -99,14 +91,6 @@ class Index < ViewConfig # see Blacklight::Catalog#additional_response_formats for information about the OpenStruct data # @!attribute collection_actions # @return [String, Symbol] - - def document_presenter_class - super || Blacklight::IndexPresenter - end - - def to_h - super.merge(document_presenter_class: document_presenter_class) - end end end end