Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chaimann committed Feb 26, 2025
1 parent e6e47da commit 17d8f3d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions legacy_promotions/app/models/spree/promotion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,7 @@ def line_item_actionable?(order, line_item, promotion_code: nil)

if eligible?(order, promotion_code:)
rules = eligible_rules(order)
if rules.blank?
true
else
rules.all? { |rule| rule.actionable? line_item }
end
rules.blank? || rules.all? { |rule| rule.actionable? line_item }
else
false
end
Expand Down

0 comments on commit 17d8f3d

Please sign in to comment.