app/controllers/spotlight/roles_controller.rb in blacklight-spotlight-3.0.0.alpha.2 vs app/controllers/spotlight/roles_controller.rb in blacklight-spotlight-3.0.0.alpha.3
- old
+ new
@@ -32,10 +32,10 @@
end
protected
def exhibit_params
- params.require(:exhibit).permit(roles_attributes: [:id, :user_key, :role, :_destroy])
+ params.require(:exhibit).permit(roles_attributes: %i[id user_key role _destroy])
end
def any_deleted
exhibit_params[:roles_attributes].values.any? do |item|
item['_destroy'].present? && item['_destroy'] != 'false'