From 98b99dddbd7f6d16d1d91a14dd9de1a64fe680cc Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 5 Sep 2019 17:52:42 +0800 Subject: [PATCH] Update text_marquees_controller.rb --- app/controllers/text_marquees_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/text_marquees_controller.rb b/app/controllers/text_marquees_controller.rb index ba82850..0f520d3 100644 --- a/app/controllers/text_marquees_controller.rb +++ b/app/controllers/text_marquees_controller.rb @@ -7,7 +7,7 @@ class TextMarqueesController < ApplicationController "text" => mqt.title, "speed" => mqt.speed, "url" => (mqt.url || ""), - "content" => (mqt.url.nil? ? "#{mqt.title}" : "#{mqt.title}") + "content" => (mqt.url.to_s.empty? ? "#{mqt.title}" : "#{mqt.title}") } end {