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