From 84acecfdc07579025f8bee094dd6325048550d16 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Mon, 27 Apr 2015 10:07:50 +0000 Subject: [PATCH] Use to_param for tmp title when no real title is set --- app/decorators/asciicast_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/decorators/asciicast_decorator.rb b/app/decorators/asciicast_decorator.rb index dc5988c..1d8ea05 100644 --- a/app/decorators/asciicast_decorator.rb +++ b/app/decorators/asciicast_decorator.rb @@ -26,7 +26,7 @@ class AsciicastDecorator < ApplicationDecorator end def title - model.title.presence || command || "asciicast:#{id}" + model.title.presence || command || "asciicast:#{to_param}" end def command