diff --git a/app/views/inbox/show.js.erb b/app/views/inbox/show.js.erb index 8c2e959e..32154b61 100644 --- a/app/views/inbox/show.js.erb +++ b/app/views/inbox/show.js.erb @@ -6,4 +6,4 @@ $('#pagination').html('<%= j will_paginate @inbox, renderer: BootstrapPagination <% else %> $('#pagination, #load-more-btn').remove(); <% end %> -<% @inbox.update_all(new: false) %> \ No newline at end of file +<% Inbox.where(id: @inbox.pluck(:id)).update_all(new: false) %> \ No newline at end of file