Sha256: 724facbd5c6d179f8aae03e4c1e304e6b19c223086e122c566ccd91c82c84acd

Contents?: true

Size: 315 Bytes

Versions: 3

Compression:

Stored size: 315 Bytes

Contents

class PaypalTransaction < ActiveRecord::Base
  include ActiveMerchant::Billing::Integrations
  
  serialize :notification, Paypal::Notification
    
  has_one :journal, :as => :transactable
  
  private
    def account
      @account ||= Account::Asset.find_by_account_number(self.notification.account)
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spatten-bookkeeper-0.2.0 lib/bookkeeper/paypal_transaction.rb
spatten-bookkeeper-0.2.1 lib/bookkeeper/paypal_transaction.rb
spatten-bookkeeper-0.2.2 lib/bookkeeper/paypal_transaction.rb