|
|
@ -242,8 +242,10 @@ module TidingDecorator
|
|
|
|
end
|
|
|
|
end
|
|
|
|
when 'Game' then
|
|
|
|
when 'Game' then
|
|
|
|
game = Game.find_by(id: parent_container_id)
|
|
|
|
game = Game.find_by(id: parent_container_id)
|
|
|
|
|
|
|
|
Rails.logger.info("#####game:#{game.id}")
|
|
|
|
if game.present?
|
|
|
|
if game.present?
|
|
|
|
format_str = I18n.t(locale_format(parent_container_type))
|
|
|
|
format_str = I18n.t(locale_format(parent_container_type))
|
|
|
|
|
|
|
|
Rails.logger.info("#####format_str:#{format_str}")
|
|
|
|
format_str % [game.challenge.shixun.name, game.challenge.position, container.score]
|
|
|
|
format_str % [game.challenge.shixun.name, game.challenge.position, container.score]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
when 'testSet' then
|
|
|
|
when 'testSet' then
|
|
|
|