Class: Locomotive::Liquid::Drops::ContentTypes

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
lib/locomotive/liquid/drops/content_types.rb

Instance Method Summary collapse

Instance Method Details

#before_method(meth) ⇒ Object



6
7
8
9
# File 'lib/locomotive/liquid/drops/content_types.rb', line 6

def before_method(meth)
  type = @context.registers[:site].content_types.where(:slug => meth.to_s).first
  ContentTypeProxyCollection.new(type)
end