Merge branch 'highlighted_field_value' of https://github.com/dirkkelly/locomotive into dirkkelly-highlighted_field_value
This commit is contained in:
commit
bc32848f6a
@ -60,6 +60,10 @@ class ContentInstance
|
|||||||
Locomotive::Liquid::Drops::Content.new(self)
|
Locomotive::Liquid::Drops::Content.new(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def highlighted_field_value
|
||||||
|
self.send(self.content_type.highlighted_field._name)
|
||||||
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def set_slug
|
def set_slug
|
||||||
@ -84,10 +88,6 @@ class ContentInstance
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def highlighted_field_value
|
|
||||||
self.send(self.content_type.highlighted_field._name)
|
|
||||||
end
|
|
||||||
|
|
||||||
def highlighted_field_alias
|
def highlighted_field_alias
|
||||||
self.content_type.highlighted_field._alias.to_sym
|
self.content_type.highlighted_field._alias.to_sym
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user