From d09e995f52392514647d35d0df64765b282e08df Mon Sep 17 00:00:00 2001 From: yanxd Date: Tue, 14 Jan 2014 09:43:53 +0800 Subject: [PATCH] class --- app/helpers/stores_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/stores_helper.rb b/app/helpers/stores_helper.rb index 025ae0bbb..e2be22cc0 100644 --- a/app/helpers/stores_helper.rb +++ b/app/helpers/stores_helper.rb @@ -1,7 +1,7 @@ module StoresHelper def attachFromUrl attachment container = attachment.container - case container.to_s + case container.class.to_s when 'Message' board_message_path(container.board, container) when 'Issue' @@ -24,7 +24,7 @@ module StoresHelper when 'Bid' bid_path(container) else - logger.error "StoresHelper#attachUrl unkown type ==> #{container}" + '#'#logger.error "StoresHelper#attachUrl unkown type ==> #{container}" end end end