Sha256: b0d1f5df7eee2425040840fb42a76dcc4b8ed2f4b76ae757bbb522e74596d217

Contents?: true

Size: 141 Bytes

Versions: 8

Compression:

Stored size: 141 Bytes

Contents

Spree::Payment.class_eval do
  has_one :purchase_order

  def po?
    payment_method.type == 'Spree::PaymentMethod::PurchaseOrder'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spree_purchase_order-3.2.0.beta app/models/spree/payment_decorator.rb
spree_purchase_order-3.1.0.beta app/models/spree/payment_decorator.rb
spree_purchase_order-3.0.0.beta app/models/spree/payment_decorator.rb
spree_purchase_order-2.4.0.beta app/models/spree/payment_decorator.rb
spree_purchase_order-2.3.0.beta app/models/spree/payment_decorator.rb
spree_purchase_order-2.2.0.beta2 app/models/spree/payment_decorator.rb
spree_purchase_order-2.2.0.beta app/models/spree/payment_decorator.rb
spree_purchase_order-2.1.0.beta app/models/spree/payment_decorator.rb