From 767a6b36cbe7cc6701ccf6388d8c7fd9c4295f88 Mon Sep 17 00:00:00 2001 From: yanxd Date: Thu, 12 Dec 2013 17:11:29 +0800 Subject: [PATCH] fix bug --- app/views/memos/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/memos/show.html.erb b/app/views/memos/show.html.erb index 66b55fd15..a59f1053e 100644 --- a/app/views/memos/show.html.erb +++ b/app/views/memos/show.html.erb @@ -33,7 +33,7 @@ <%= raw @memo.content %>

<% if @memo.attachments.any?%> - <% options = {:author => true, :deletable => reply.deleted_attach_able_by?(User.current) } %> + <% options = {:author => true, :deletable => @memo.deleted_attach_able_by?(User.current) } %> <%= render :partial => 'attachments/links', :locals => {:attachments => @memo.attachments, :options => options} %> <% end %>