engine/lib/locomotive/liquid/drops/content.rb

27 lines
550 B
Ruby
Raw Normal View History

module Locomotive
module Liquid
module Drops
class Content < Base
2011-06-23 12:57:52 +00:00
delegate :seo_title, :meta_keywords, :meta_description, :to => '_source'
def _id
self._source._id.to_s
end
def before_method(meth)
return '' if self._source.nil?
if not @@forbidden_attributes.include?(meth.to_s)
value = self._source.send(meth)
end
end
def highlighted_field_value
self._source.highlighted_field_value
end
end
end
end
end