2010-06-03 15:32:40 +00:00
|
|
|
module Locomotive
|
|
|
|
module Liquid
|
|
|
|
module Drops
|
2010-05-30 23:57:33 +00:00
|
|
|
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
|
|
|
|
|
2010-06-03 15:32:40 +00:00
|
|
|
end
|
2010-05-30 23:57:33 +00:00
|
|
|
end
|
2010-06-03 15:32:40 +00:00
|
|
|
end
|
2010-05-30 23:57:33 +00:00
|
|
|
end
|