Class: Hyrax::HomepageController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Hyrax::HomepageController
- Includes:
- Blacklight::AccessControls::Catalog, Blacklight::SearchContext, Blacklight::SearchHelper
- Defined in:
- app/controllers/hyrax/homepage_controller.rb
Instance Method Summary collapse
- #index ⇒ Object
-
#search_builder_class ⇒ Object
The search builder for finding recent documents Override of Blacklight::RequestBuilders.
Instance Method Details
#index ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'app/controllers/hyrax/homepage_controller.rb', line 18 def index @presenter = presenter_class.new(current_ability, collections) @featured_researcher = ContentBlock.for(:researcher) @marketing_text = ContentBlock.for(:marketing) @featured_work_list = FeaturedWorkList.new @announcement_text = ContentBlock.for(:announcement) recent end |
#search_builder_class ⇒ Object
The search builder for finding recent documents Override of Blacklight::RequestBuilders
9 10 11 |
# File 'app/controllers/hyrax/homepage_controller.rb', line 9 def search_builder_class Hyrax::HomepageSearchBuilder end |