app/controllers/spotlight/roles_controller.rb in blacklight-spotlight-3.4.0 vs app/controllers/spotlight/roles_controller.rb in blacklight-spotlight-3.4.1
- old
+ new
@@ -5,10 +5,10 @@
# CRUD actions for assigning exhibit roles to
# existing users
class RolesController < Spotlight::ApplicationController
before_action :authenticate_user!
load_and_authorize_resource :exhibit, class: Spotlight::Exhibit
- load_and_authorize_resource through: :exhibit, except: [:update_all]
+ load_and_authorize_resource through: :exhibit, except: %i[index update_all]
def index
role = @exhibit.roles.build
authorize! :edit, role