Module: Locomotive::Mongoid::Liquid
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/locomotive/mongoid/liquid.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#to_liquid ⇒ Object
Get the liquid drop corresponding to the current document.
Instance Method Details
#to_liquid ⇒ Object
Get the liquid drop corresponding to the current document
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 |