Sha256: 73062f672f8031c061055778ecc840c44c06e570c1534e3f73e90a837b79187f

Contents?: true

Size: 248 Bytes

Versions: 54

Compression:

Stored size: 248 Bytes

Contents

module Dugway
  module Drops
    class CategoriesDrop < BaseDrop
      def all
        @all ||= source
      end

      def active
        @active ||= source.reject { |c| store.category_products(c['permalink']).empty? }
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
dugway-1.0.14 lib/dugway/liquid/drops/categories_drop.rb
dugway-1.0.13 lib/dugway/liquid/drops/categories_drop.rb
dugway-1.0.12 lib/dugway/liquid/drops/categories_drop.rb
dugway-1.0.10 lib/dugway/liquid/drops/categories_drop.rb
dugway-1.0.9 lib/dugway/liquid/drops/categories_drop.rb
dugway-1.0.8 lib/dugway/liquid/drops/categories_drop.rb
dugway-1.0.7 lib/dugway/liquid/drops/categories_drop.rb
dugway-1.0.6 lib/dugway/liquid/drops/categories_drop.rb
dugway-1.0.5 lib/dugway/liquid/drops/categories_drop.rb
dugway-1.0.4 lib/dugway/liquid/drops/categories_drop.rb
dugway-1.0.3 lib/dugway/liquid/drops/categories_drop.rb
dugway-1.0.2 lib/dugway/liquid/drops/categories_drop.rb
dugway-1.0.1 lib/dugway/liquid/drops/categories_drop.rb
dugway-1.0.0 lib/dugway/liquid/drops/categories_drop.rb
dugway-0.12.3 lib/dugway/liquid/drops/categories_drop.rb
dugway-0.12.2 lib/dugway/liquid/drops/categories_drop.rb
dugway-0.12.1 lib/dugway/liquid/drops/categories_drop.rb
dugway-0.12.0 lib/dugway/liquid/drops/categories_drop.rb
dugway-0.11.4 lib/dugway/liquid/drops/categories_drop.rb
dugway-0.11.3 lib/dugway/liquid/drops/categories_drop.rb