app/controllers/hyrax/collections_controller.rb in hyrax-3.1.0 vs app/controllers/hyrax/collections_controller.rb in hyrax-3.2.0
- old
+ new
@@ -2,10 +2,12 @@
module Hyrax
class CollectionsController < ApplicationController
include CollectionsControllerBehavior
include BreadcrumbsForCollections
with_themed_layout :decide_layout
- load_and_authorize_resource except: [:index, :show, :create], instance_name: :collection
+ load_and_authorize_resource except: [:index, :create],
+ instance_name: :collection,
+ class: Hyrax.config.collection_model
# Renders a JSON response with a list of files in this collection
# This is used by the edit form to populate the thumbnail_id dropdown
def files
result = form.select_files.map do |label, id|