engine/lib/locomotive/liquid/drops/content.rb
2010-07-16 22:36:07 +02:00

21 lines
436 B
Ruby

module Locomotive
module Liquid
module Drops
class Content < Base
def before_method(meth)
return '' if @source.nil?
if not @@forbidden_attributes.include?(meth.to_s)
value = @source.send(meth)
end
end
def highlighted_field_value
@source.highlighted_field_value
end
end
end
end
end