app/controllers/spotlight/pages_controller.rb in blacklight-spotlight-3.0.0.rc5 vs app/controllers/spotlight/pages_controller.rb in blacklight-spotlight-3.0.0.rc6
- old
+ new
@@ -15,13 +15,15 @@
helper Openseadragon::OpenseadragonHelper
include Spotlight::SearchHelper
include Spotlight::Base
include Blacklight::SearchContext
- helper_method :get_search_results, :search_results, :fetch, :page_collection_name, :presenter
+ helper_method :get_search_results, :search_results, :fetch, :page_collection_name
before_action do
+ blacklight_config.action_mapping.default = blacklight_config.index
+ blacklight_config.action_mapping.show = blacklight_config.index
blacklight_config.view.gallery.classes = 'row-cols-2 row-cols-md-4' unless @page&.display_sidebar
end
# GET /exhibits/1/pages
def index
@@ -201,13 +203,9 @@
elsif pages_for_id.translated_page_for(I18n.locale)
redirect_to polymorphic_path([current_exhibit, pages_for_id.translated_page_for(I18n.locale)])
else
raise ActiveRecord::RecordNotFound
end
- end
-
- def presenter(document)
- view_context.index_presenter(document)
end
end
# rubocop:enable Metrics/ClassLength
end