2010-07-23 20:09:54 +00:00
|
|
|
module Locomotive
|
|
|
|
module Liquid
|
2010-05-30 23:57:33 +00:00
|
|
|
module Drops
|
2010-07-23 20:09:54 +00:00
|
|
|
|
|
|
|
class AssetCollections < ::Liquid::Drop
|
|
|
|
|
2010-05-30 23:57:33 +00:00
|
|
|
def initialize(site)
|
|
|
|
@site = site
|
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-05-30 23:57:33 +00:00
|
|
|
def before_method(meth)
|
|
|
|
@site.asset_collections.where(:slug => meth.to_s)
|
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-05-30 23:57:33 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-05-30 23:57:33 +00:00
|
|
|
end
|
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
end
|