Sha256: 6737edf1742233027a9875e1467e7178e8aebac514044d0e6b48ca9fe9cb4e04

Contents?: true

Size: 317 Bytes

Versions: 17

Compression:

Stored size: 317 Bytes

Contents

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
locomotive_cms-0.0.3.3 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.3.1 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.2.9 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.2.8 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.2.7 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.2.6 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.2.5 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.2.4 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.2.3 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.2.2 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.2.1 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.2 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.1.4 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.1.3 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.1.2 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.1.1 lib/locomotive/liquid/drops/asset_collections.rb
locomotive_cms-0.0.1 lib/locomotive/liquid/drops/asset_collections.rb