Sha256: e559a988d32fcbf2d920dd036e838a50e5d2ab8c39400bd78904759123f7c013

Contents?: true

Size: 623 Bytes

Versions: 77

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

77 entries across 77 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.1 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.13.0 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.12.1 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.12.0 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.11.0 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.10.0 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.9.0 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.8.0 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.7.2 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.7.1 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.7.0 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.6.1.1 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.6.1 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.6.0 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.5.2 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.5.1 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-2.5.0 app/controllers/spotlight/view_configurations_controller.rb