From 487de37477bc400d729e703793eeafcdfa8a0820 Mon Sep 17 00:00:00 2001 From: nilsding Date: Sat, 28 Feb 2015 17:29:10 +0100 Subject: [PATCH] fix jihad issue #86 --- app/views/inbox/show.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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