From 17767fdef97e2658dcce968f0eff51c8bc7ebdcf Mon Sep 17 00:00:00 2001 From: nirosh ubeysinghe Date: Wed, 23 Sep 2020 10:33:54 +0530 Subject: [PATCH] Change dynamic seo creation fields retrieve logic --- lib/fi_seo.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/fi_seo.rb b/lib/fi_seo.rb index 267c9a6..8c69b23 100644 --- a/lib/fi_seo.rb +++ b/lib/fi_seo.rb @@ -192,7 +192,7 @@ def title_value if self&.dynamic_seo&.title.present? self.dynamic_seo.title else - self.send(self.class.seoable_fields.first) + self.send(self.class.seoable_fields.first) || '' end end @@ -200,7 +200,7 @@ def description_value if self&.dynamic_seo&.description.present? self.dynamic_seo.description else - self.send(self.class.seoable_fields.second) + self.send(self.class.seoable_fields.second) || '' end end @@ -208,7 +208,7 @@ def keywords_value if self&.dynamic_seo&.keywords.present? self.dynamic_seo.keywords else - self.send(self.class.seoable_fields.third) + self.send(self.class.seoable_fields.third) || '' end end end