Class: Blacklight::Configuration::ViewConfig::Show
- Inherits:
-
Blacklight::Configuration::ViewConfig
- Object
- OpenStruct
- OpenStructWithHashAccess
- Blacklight::Configuration::ViewConfig
- Blacklight::Configuration::ViewConfig::Show
- Defined in:
- lib/blacklight/configuration/view_config.rb
Instance Attribute Summary collapse
-
#route ⇒ Hash
Default route parameters for 'show' requests.
Attributes inherited from Blacklight::Configuration::ViewConfig
#display_type_field, #document_actions, #document_component, #icon, #partials, #template, #title_field
Instance Method Summary collapse
Methods inherited from Blacklight::Configuration::ViewConfig
#display_label, #search_bar_presenter_class
Methods inherited from OpenStructWithHashAccess
#deep_dup, #merge, #merge!, #reverse_merge, #select, #sort_by, #sort_by!, #try
Instance Attribute Details
#route ⇒ Hash
Returns 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.
45 46 47 |
# File 'lib/blacklight/configuration/view_config.rb', line 45 def document_presenter_class super || Blacklight::ShowPresenter end |
Instance Method Details
#document_presenter_class ⇒ Object
45 46 47 |
# File 'lib/blacklight/configuration/view_config.rb', line 45 def document_presenter_class super || Blacklight::ShowPresenter end |
#to_h ⇒ Object
49 50 51 |
# File 'lib/blacklight/configuration/view_config.rb', line 49 def to_h super.merge(document_presenter_class: document_presenter_class) end |