class
This commit is contained in:
parent
e174c710ef
commit
d09e995f52
|
@ -1,7 +1,7 @@
|
||||||
module StoresHelper
|
module StoresHelper
|
||||||
def attachFromUrl attachment
|
def attachFromUrl attachment
|
||||||
container = attachment.container
|
container = attachment.container
|
||||||
case container.to_s
|
case container.class.to_s
|
||||||
when 'Message'
|
when 'Message'
|
||||||
board_message_path(container.board, container)
|
board_message_path(container.board, container)
|
||||||
when 'Issue'
|
when 'Issue'
|
||||||
|
@ -24,7 +24,7 @@ module StoresHelper
|
||||||
when 'Bid'
|
when 'Bid'
|
||||||
bid_path(container)
|
bid_path(container)
|
||||||
else
|
else
|
||||||
logger.error "StoresHelper#attachUrl unkown type ==> #{container}"
|
'#'#logger.error "StoresHelper#attachUrl unkown type ==> #{container}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue