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-3.0.3 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.2 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.1 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.rc6 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.rc5 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.rc4 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.rc3 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.rc2 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.rc1 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.alpha.10 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.alpha.9 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.alpha.8 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.alpha.7 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.alpha.6 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.alpha.5 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.alpha.4 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.alpha.3 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.alpha.2 app/controllers/spotlight/view_configurations_controller.rb
blacklight-spotlight-3.0.0.alpha.1 app/controllers/spotlight/view_configurations_controller.rb