Sha256: 4ba9bb700f4ed8abe094d7c4cfd4c9d59414b15890a2d153eaf55f20334137b9

Contents?: true

Size: 339 Bytes

Versions: 5

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

module SolidusFriendlyPromotions
  class ShippingRateDiscount < Spree::Base
    belongs_to :shipping_rate, inverse_of: :discounts, class_name: "Spree::ShippingRate"
    belongs_to :promotion_action, -> { with_discarded }, inverse_of: false

    extend Spree::DisplayMoney
    money_methods :amount
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_friendly_promotions-1.0.0 app/models/solidus_friendly_promotions/shipping_rate_discount.rb
solidus_friendly_promotions-1.0.0.rc.3 app/models/solidus_friendly_promotions/shipping_rate_discount.rb
solidus_friendly_promotions-1.0.0.rc.2 app/models/solidus_friendly_promotions/shipping_rate_discount.rb
solidus_friendly_promotions-1.0.0.rc.1 app/models/solidus_friendly_promotions/shipping_rate_discount.rb
solidus_friendly_promotions-1.0.0.pre app/models/solidus_friendly_promotions/shipping_rate_discount.rb