Module: Locomotive::Mongoid::Liquid

Extended by:
ActiveSupport::Concern
Defined in:
lib/locomotive/mongoid/liquid.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#to_liquidObject

Get the liquid drop corresponding to the current document

Returns:

  • (Object)

    The liquid drop



17
18
19
20
# File 'lib/locomotive/mongoid/liquid.rb', line 17

def to_liquid
  return nil unless self.class.drop_class
  self.class.drop_class.new(self)
end