Module: Locomotive::Mongoid::Liquid::ClassMethods
- Defined in:
- lib/locomotive/mongoid/liquid.rb
Instance Method Summary collapse
-
#drop_class ⇒ Class
Return the memoized liquid drop class if it exists.
Instance Method Details
#drop_class ⇒ Class
Return the memoized liquid drop class if it exists.
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 |