Sha256: e559a988d32fcbf2d920dd036e838a50e5d2ab8c39400bd78904759123f7c013

Contents?: true

Size: 623 Bytes

Versions: 76

Compression:

Stored size: 623 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  ##
  # Administration for Blacklight view configurations
  class ViewConfigurationsController < Spotlight::ApplicationController
    before_action :authenticate_user!
    load_and_authorize_resource :exhibit, class: Spotlight::Exhibit
    load_and_authorize_resource :blacklight_configuration, through: :exhibit, singleton: true, parent: false

    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
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
blacklight-spotlight-4.3.6 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-4.3.5 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-4.3.4 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-4.3.3 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-4.3.2 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-4.3.1 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-4.3.0 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-4.2.0 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-4.1.2 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-4.1.1 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-4.1.0 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-4.0.3 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-4.0.2 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-4.0.1 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-4.0.0 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.6.0.beta10 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.6.0.beta9 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.6.0.beta8 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.5.0.4 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.6.0.beta7 app/controllers/spotlight/view_configurations_controller.rb