Skip to content

Commit

Permalink
fix for turbo stream
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Apr 19, 2023
1 parent 0af2b71 commit f0c3abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/devise/invitations_controller.rb
Expand Up @@ -31,7 +31,7 @@ def create
respond_with resource, location: after_invite_path_for(current_inviter, resource)
end
else
respond_with_navigational(resource) { render :new, status: :unprocessable_entity }
respond_with(resource)
end
end

Expand Down Expand Up @@ -63,7 +63,7 @@ def update
end
else
resource.invitation_token = raw_invitation_token
respond_with_navigational(resource) { render :edit, status: :unprocessable_entity }
respond_with(resource)
end
end

Expand Down

0 comments on commit f0c3abb

Please sign in to comment.