mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 10:29:07 +01:00
Update generated entries to not be new after rendering
This commit is contained in:
parent
78df5af040
commit
f91246986c
1 changed files with 2 additions and 0 deletions
|
@ -64,6 +64,8 @@ class InboxController < ApplicationController
|
|||
respond_to do |format|
|
||||
format.turbo_stream do
|
||||
render turbo_stream: turbo_stream.prepend("entries", partial: "inbox/entry", locals: { i: inbox })
|
||||
|
||||
inbox.update(new: false)
|
||||
end
|
||||
|
||||
format.html { redirect_to inbox_path }
|
||||
|
|
Loading…
Reference in a new issue