Sha256: 921d4eb258265d2f02d477d9ad5e50f07ad0c549078026c45de79b02e1ab8424

Contents?: true

Size: 172 Bytes

Versions: 13

Compression:

Stored size: 172 Bytes

Contents

Spree::Payment.class_eval do
  scope :from_purchase_order, -> { where(source_type: 'Spree::PurchaseOrder') }

  def po?
    source_type == 'Spree::PurchaseOrder'
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spree_purchase_order-3.7.0 app/models/spree/payment_decorator.rb
spree_purchase_order-3.6.0 app/models/spree/payment_decorator.rb
spree_purchase_order-3.5.0 app/models/spree/payment_decorator.rb
spree_purchase_order-3.5.0.rc1 app/models/spree/payment_decorator.rb
spree_purchase_order-3.4.0 app/models/spree/payment_decorator.rb
spree_purchase_order-3.3.0 app/models/spree/payment_decorator.rb
spree_purchase_order-3.2.0 app/models/spree/payment_decorator.rb
spree_purchase_order-2.2.0 app/models/spree/payment_decorator.rb
spree_purchase_order-2.3.0 app/models/spree/payment_decorator.rb
spree_purchase_order-2.4.0 app/models/spree/payment_decorator.rb
spree_purchase_order-3.1.0 app/models/spree/payment_decorator.rb
spree_purchase_order-3.0.0 app/models/spree/payment_decorator.rb
spree_purchase_order-3.2.0.rc1 app/models/spree/payment_decorator.rb