Sha256: a2f8ad7361f3e74522cc87912e526c9f85335aebecb0e80c85c434c2474f93b5

Contents?: true

Size: 221 Bytes

Versions: 15

Compression:

Stored size: 221 Bytes

Contents

module Spree
  class PaymentCaptureEvent < ActiveRecord::Base
    belongs_to :payment, class_name: 'Spree::Payment'

    def display_amount
      Spree::Money.new(amount, { currency: payment.currency })
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spree_core-2.2.14 app/models/spree/payment_capture_event.rb
spree_core-2.2.13 app/models/spree/payment_capture_event.rb
spree_core-2.2.12 app/models/spree/payment_capture_event.rb
spree_core-2.2.11 app/models/spree/payment_capture_event.rb
spree_core-2.2.10 app/models/spree/payment_capture_event.rb
spree_core-2.2.9 app/models/spree/payment_capture_event.rb
spree_core-2.2.8 app/models/spree/payment_capture_event.rb
spree_core-2.2.7 app/models/spree/payment_capture_event.rb
spree_core-2.2.6 app/models/spree/payment_capture_event.rb
spree_core-2.2.5 app/models/spree/payment_capture_event.rb
spree_core-2.2.4 app/models/spree/payment_capture_event.rb
spree_core-2.2.3 app/models/spree/payment_capture_event.rb
spree_core-2.2.2 app/models/spree/payment_capture_event.rb
spree_core-2.2.1 app/models/spree/payment_capture_event.rb
spree_core-2.2.0 app/models/spree/payment_capture_event.rb