Sha256: 132109abdf355d049ba4210a24a0dd27672401881893b827ba0e7275715bf57a

Contents?: true

Size: 288 Bytes

Versions: 10

Compression:

Stored size: 288 Bytes

Contents

module MageRecord
  class OrderPayment < ActiveRecord::Base
    self.table_name = :sales_flat_order_payment

    belongs_to :order, foreign_key: :parent_id


    def cash?
      return method == 'cashondelivery'
    end

    def cheque?
      return method == 'checkmo'
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
magerecord-0.5.8 lib/magerecord/order_payment.rb
magerecord-0.5.7 lib/magerecord/order_payment.rb
magerecord-0.5.6 lib/magerecord/order_payment.rb
magerecord-0.5.5 lib/magerecord/order_payment.rb
magerecord-0.5.4 lib/magerecord/order_payment.rb
magerecord-0.5.3 lib/magerecord/order_payment.rb
magerecord-0.5.2 lib/magerecord/order_payment.rb
magerecord-0.5.1 lib/magerecord/order_payment.rb
magerecord-0.5.0 lib/magerecord/order_payment.rb
magerecord-0.4.0 lib/magerecord/order_payment.rb