spree-contrib/spree_drop_ship

View on GitHub
app/models/spree/payment_decorator.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Dropship
  module Spree
    module PaymentDecorator
      def self.prepended(base)
        base.belongs_to :payable, polymorphic: true
      end
    end
  end
end

Spree::Payment.prepend Dropship::Spree::PaymentDecorator