Sha256: 226f6f49e6cbdfc72f75603bd0c128efff81229a3345f88de7e75ddd2df17dc6

Contents?: true

Size: 386 Bytes

Versions: 5

Compression:

Stored size: 386 Bytes

Contents

# frozen_string_literal: true

class SolidusPromotions::Orders::Index::Component < SolidusAdmin::Orders::Index::Component
  def filters
    super + [
      {
        label: t(".filters.promotions"),
        combinator: "or",
        attribute: "solidus_promotions_id",
        predicate: "in",
        options: SolidusPromotions::Promotion.all.pluck(:name, :id)
      }
    ]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_promotions-4.5.1 lib/components/admin/solidus_promotions/orders/index/component.rb
solidus_promotions-4.5.0 lib/components/admin/solidus_promotions/orders/index/component.rb
solidus_promotions-4.4.2 lib/components/admin/solidus_promotions/orders/index/component.rb
solidus_promotions-4.4.1 lib/components/admin/solidus_promotions/orders/index/component.rb
solidus_promotions-4.4.0 lib/components/admin/solidus_promotions/orders/index/component.rb