Sha256: 85bb772680f776d17bf31ae6ce53a8b171fd12d268fa5649adf6dea576003eb7

Contents?: true

Size: 237 Bytes

Versions: 6

Compression:

Stored size: 237 Bytes

Contents

module Opay
  class Payment < ActiveRecord::Base
    belongs_to :payable, polymorphic: true
    attr_accessible :provider, :amount, :finished, :session_id
    validates :payable, :provider, :amount, :session_id, presence: true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opay-1.0.6 app/models/opay/payment.rb
opay-1.0.5 app/models/opay/payment.rb
opay-1.0.4 app/models/opay/payment.rb
opay-1.0.3 app/models/opay/payment.rb
opay-1.0.1 app/models/opay/payment.rb
opay-1.0.0 app/models/opay/payment.rb