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

25 lines
393 B
Ruby
Raw Normal View History

module Locomotive
module Liquid
module Drops
class Content < Base
@@forbidden_attributes = %w{_id _version _index}
def before_method(meth)
return '' if @source.nil?
if not @@forbidden_attributes.include?(meth.to_s)
@source.send(meth)
end
end
end
end
end
end