engine/lib/locomotive/liquid/drops/asset_collections.rb

19 lines
317 B
Ruby
Raw Normal View History

2010-06-03 15:32:40 +00:00
module Locomotive
module Liquid
module Drops
class AssetCollections < ::Liquid::Drop
def initialize(site)
@site = site
end
def before_method(meth)
@site.asset_collections.where(:slug => meth.to_s)
end
end
end
end
end