Sha256: 8413fde912b63be707d734ad9be06e21ade0b04869824037e08476b7f88492b4

Contents?: true

Size: 454 Bytes

Versions: 9

Compression:

Stored size: 454 Bytes

Contents

module Spree
  class BankTransfer < Spree::Base
    belongs_to :payment_method
    belongs_to :user, class_name: Spree.user_class, foreign_key: 'user_id'
    has_many :payments, as: :source

    validates :email, :given_name, :family_name, :given_name_kana, :family_name_kana, presence: true

    def actions
      %w{}
    end

    def instructions_partial_path
      "spree/orders/bank_transfer"
    end

    def imported
      false
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_komoju-0.1.4 app/models/spree/bank_transfer.rb
spree_komoju-0.1.3 app/models/spree/bank_transfer.rb
spree_komoju-0.1.2 app/models/spree/bank_transfer.rb
spree_komoju-0.1.1 app/models/spree/bank_transfer.rb
spree_komoju-0.1.0 app/models/spree/bank_transfer.rb
spree_komoju-0.0.9 app/models/spree/bank_transfer.rb
spree_komoju-0.0.8 app/models/spree/bank_transfer.rb
spree_komoju-0.0.7 app/models/spree/bank_transfer.rb
spree_komoju-0.0.6 app/models/spree/bank_transfer.rb