Module: Locomotive::Mongoid::Liquid::ClassMethods

Defined in:
lib/locomotive/mongoid/liquid.rb

Instance Method Summary collapse

Instance Method Details

#drop_classClass

Return the memoized liquid drop class if it exists.

Returns:

  • (Class)

    The liquid drop class


28
29
30
31
32
# File 'lib/locomotive/mongoid/liquid.rb', line 28

def drop_class
  return @drop_class if @drop_class
  _name       = "Locomotive::Liquid::Drops::#{name.demodulize}"
  @drop_class = _name.constantize rescue nil
end