small fix for remote

This commit is contained in:
Harry Bomrah 2016-04-12 17:55:50 +08:00
parent 73ad4a5eb4
commit ef37c0dd27
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ class AnnouncementsController < ApplicationController
request = OrbitHelper.request
if announcement["subtitle_translations"].present?
meta_desc = announcement["subtitle_translations"][locale] != "" ? announcement["subtitle_translations"][locale] : announcement["text_translations"][locale][0..200]
meta_desc = announcement["subtitle_translations"][locale] != "" ? announcement["subtitle_translations"][locale] : announcement["text_translations"][locale][0..200] rescue ""
else
meta_desc = ""
end