engine/lib/locomotive/liquid/drops/content.rb
2011-06-23 05:57:52 -07:00

27 lines
550 B
Ruby

module Locomotive
module Liquid
module Drops
class Content < Base
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