app/controllers/spotlight/pages_controller.rb in blacklight-spotlight-0.32.0 vs app/controllers/spotlight/pages_controller.rb in blacklight-spotlight-0.33.0
- old
+ new
@@ -2,10 +2,11 @@
##
# Base CRUD controller for pages
class PagesController < Spotlight::ApplicationController
before_action :authenticate_user!, except: [:show]
load_and_authorize_resource :exhibit, class: Spotlight::Exhibit
+ load_and_authorize_resource through: :exhibit, instance_name: 'page', only: [:index]
helper Openseadragon::OpenseadragonHelper
include Spotlight::Base
include Blacklight::SearchContext
@@ -113,11 +114,11 @@
[:title, :content, thumbnail_attributes: featured_image_attributes]
end
def featured_image_attributes
[
- :source, :image, :remote_image_url, :document_global_id,
- :image_crop_x, :image_crop_y, :image_crop_w, :image_crop_h
+ :source, :image, :document_global_id, :iiif_region, :iiif_tilesource,
+ :iiif_manifest_url, :iiif_canvas_id, :iiif_image_id
]
end
def human_name
@human_name ||= page_collection_name.humanize