From 5eab8e35bf4d81e8d09df943110e73f996d9f14b Mon Sep 17 00:00:00 2001 From: Dirk Kelly Date: Fri, 14 Jan 2011 15:47:53 +0800 Subject: [PATCH] calling page.title on a content_instance page would call highlighted_field_value. This method was protected and would hence raise an inline exception. I'm not sure why we would protect highlighted_field_value? --- app/models/content_instance.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/content_instance.rb b/app/models/content_instance.rb index fd725dc9..fc6dde05 100644 --- a/app/models/content_instance.rb +++ b/app/models/content_instance.rb @@ -60,6 +60,10 @@ class ContentInstance Locomotive::Liquid::Drops::Content.new(self) end + def highlighted_field_value + self.send(self.content_type.highlighted_field._name) + end + protected def set_slug @@ -84,10 +88,6 @@ class ContentInstance end end - def highlighted_field_value - self.send(self.content_type.highlighted_field._name) - end - def highlighted_field_alias self.content_type.highlighted_field._alias.to_sym end