Sha256: 0d38c87beabfe88f7bf329a7084afe8f906cce0e82c48291f7b48d9f467f40fd
Contents?: true
Size: 284 Bytes
Versions: 5
Compression:
Stored size: 284 Bytes
Contents
# frozen_string_literal: true module SolidusPromotions class PromotionFinder def self.by_code_or_id(coupon_code_or_id) SolidusPromotions::Promotion.with_coupon_code(coupon_code_or_id.to_s) || SolidusPromotions::Promotion.find(coupon_code_or_id) end end end
Version data entries
5 entries across 5 versions & 1 rubygems