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