app/controllers/spotlight/roles_controller.rb in blacklight-spotlight-0.23.0 vs app/controllers/spotlight/roles_controller.rb in blacklight-spotlight-0.24.0
- old
+ new
@@ -23,10 +23,10 @@
if @exhibit.update(exhibit_params)
notice = any_deleted ? t(:'helpers.submit.role.destroyed') : t(:'helpers.submit.role.updated')
redirect_to exhibit_roles_path(@exhibit), notice: notice
else
- flash[:alert] = t(:'helpers.submit.role.batch_error', count: exhibit_params[:roles_attributes].size)
+ flash[:alert] = t(:'helpers.submit.role.batch_error', count: exhibit_params[:roles_attributes].to_unsafe_h.size)
render action: 'index'
end
end
protected