This commit is contained in:
yanxd 2014-01-14 09:43:53 +08:00
parent e174c710ef
commit d09e995f52
1 changed files with 2 additions and 2 deletions

View File

@ -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