mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-28 00:41:47 +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|
|
respond_to do |format|
|
||||||
format.turbo_stream do
|
format.turbo_stream do
|
||||||
render turbo_stream: turbo_stream.prepend("entries", partial: "inbox/entry", locals: { i: inbox })
|
render turbo_stream: turbo_stream.prepend("entries", partial: "inbox/entry", locals: { i: inbox })
|
||||||
|
|
||||||
|
inbox.update(new: false)
|
||||||
end
|
end
|
||||||
|
|
||||||
format.html { redirect_to inbox_path }
|
format.html { redirect_to inbox_path }
|
||||||
|
|
Loading…
Reference in a new issue