Sha256: 95df99b068eaa187f029385fae44e751f35e1773c22ad9274640b6fe2397d238
Contents?: true
Size: 592 Bytes
Versions: 84
Compression:
Stored size: 592 Bytes
Contents
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
84 entries across 84 versions & 1 rubygems