From 861ba2eba41e8ca0ada052aca2db9482a77bc592 Mon Sep 17 00:00:00 2001 From: nirosh ubeysinghe Date: Wed, 23 Sep 2020 13:04:23 +0530 Subject: [PATCH] Change data retrivel 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 8c69b23..c539384 100644 --- a/lib/fi_seo.rb +++ b/lib/fi_seo.rb @@ -189,7 +189,7 @@ def canonical_url end def title_value - if self&.dynamic_seo&.title.present? + if self&.dynamic_seo&.title self.dynamic_seo.title else self.send(self.class.seoable_fields.first) || '' @@ -197,7 +197,7 @@ def title_value end def description_value - if self&.dynamic_seo&.description.present? + if self&.dynamic_seo&.description self.dynamic_seo.description else self.send(self.class.seoable_fields.second) || '' @@ -205,7 +205,7 @@ def description_value end def keywords_value - if self&.dynamic_seo&.keywords.present? + if self&.dynamic_seo&.keywords self.dynamic_seo.keywords else self.send(self.class.seoable_fields.third) || ''