Class: Spotlight::ViewConfigurationsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/spotlight/view_configurations_controller.rb

Overview

Administration for Blacklight view configurations

Instance Method Summary collapse

Methods included from Concerns::ApplicationController

#enabled_in_spotlight_view_type_configuration?, #field_enabled?

Methods included from Controller

#blacklight_config, #current_exhibit, #current_masthead, #current_masthead=, #current_site, #exhibit_masthead?, #exhibit_search_action_url, #exhibit_search_facet_url, #redirect_back, #resource_masthead?, #search_action_url, #search_facet_url

Methods included from Config

#exhibit_specific_blacklight_config

Instance Method Details

#showObject



9
10
11
12
13
14
15
# File 'app/controllers/spotlight/view_configurations_controller.rb', line 9

def show
  respond_to do |format|
    format.json do
      render json: @blacklight_configuration.default_blacklight_config.view.to_h.reject { |_k, v| v.if == false }.keys
    end
  end
end