From 59a8b96c898aebe1c3a95bc8079b3430b819ff3f Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 19 May 2022 09:52:23 +0800 Subject: [PATCH] Fix bug. --- app/controllers/ad_banners_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ad_banners_controller.rb b/app/controllers/ad_banners_controller.rb index e51d75a..2d1dfb7 100644 --- a/app/controllers/ad_banners_controller.rb +++ b/app/controllers/ad_banners_controller.rb @@ -102,7 +102,7 @@ class AdBannersController < ApplicationController video_url = ad_b.video_file.url rescue nil video_webm_url = ad_b.video_file_webm.url rescue nil @file_poster = ad_b.video_snapshot.url rescue nil - title = (ad_b.title.blank? ? File.basename(ad_b.video_file) : ad_b.title) + title = (ad_b.title.blank? ? File.basename(video_url) : ad_b.title) image_html = "