Sha256: 9fcf8f68ed3dfa6c9ebef4553690e0e8d798c0b508e01dd99071468c18044aea

Contents?: true

Size: 347 Bytes

Versions: 7

Compression:

Stored size: 347 Bytes

Contents

module SolidusBling
  module Spree
    module ShippingMethodDecorator
      def self.prepended(base)
        base.class_eval do
          has_many :solidus_bling_shipping_methods, class_name: "SolidusBling::ShippingMethod", foreign_key: "spree_shipping_method_id"
        end
      end

      ::Spree::ShippingMethod.prepend self
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_bling-2.0.7 app/decorators/models/solidus_bling/spree/shipping_method_decorator.rb
solidus_bling-2.0.6 app/decorators/models/solidus_bling/spree/shipping_method_decorator.rb
solidus_bling-2.0.5 app/decorators/models/solidus_bling/spree/shipping_method_decorator.rb
solidus_bling-2.0.4 app/decorators/models/solidus_bling/spree/shipping_method_decorator.rb
solidus_bling-2.0.3 app/decorators/models/solidus_bling/spree/shipping_method_decorator.rb
solidus_bling-2.0.2 app/decorators/models/solidus_bling/spree/shipping_method_decorator.rb
solidus_bling-2.0.1 app/decorators/models/solidus_bling/spree/shipping_method_decorator.rb