Sha256: 3410d0ab81242faeeca90561b9bf798412e98033f7004a62d54a56834b935e75

Contents?: true

Size: 268 Bytes

Versions: 4

Compression:

Stored size: 268 Bytes

Contents

# frozen_string_literal: true

module SolidusFriendlyPromotions
  module Conditions
    module LineItemLevelCondition
      def applicable?(promotable)
        promotable.is_a?(Spree::LineItem)
      end

      def level
        :line_item
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_friendly_promotions-1.9.3 app/models/concerns/solidus_friendly_promotions/conditions/line_item_level_condition.rb
solidus_friendly_promotions-1.9.2 app/models/concerns/solidus_friendly_promotions/conditions/line_item_level_condition.rb
solidus_friendly_promotions-1.9.1 app/models/concerns/solidus_friendly_promotions/conditions/line_item_level_condition.rb
solidus_friendly_promotions-1.9.0 app/models/concerns/solidus_friendly_promotions/conditions/line_item_level_condition.rb