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

19 lines
355 B
Ruby
Raw Normal View History

2010-06-03 15:32:40 +00:00
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
2010-06-03 15:32:40 +00:00
end
end
2010-06-03 15:32:40 +00:00
end
end