app/controllers/spotlight/roles_controller.rb in blacklight-spotlight-0.13.0 vs app/controllers/spotlight/roles_controller.rb in blacklight-spotlight-0.14.0

- old
+ new

@@ -40,10 +40,10 @@ end end def invite user = Spotlight::Engine.user_class.invite!(email: invite_params[:user], skip_invitation: true) # don't deliver the invitation yet - role = Spotlight::Role.create(exhibit: current_exhibit, user: user, role: invite_params[:role]) + role = Spotlight::Role.create(resource: current_exhibit, user: user, role: invite_params[:role]) if role.save user.deliver_invitation # now deliver it when we have saved the role redirect_to :back, notice: t(:'helpers.submit.role.updated') else redirect_to :back, alert: t(:'helpers.submit.role.batch_error')