Sha256: a90f2cc853b2b34f36e2d0be2bedb8557fddc9d172e674523a49dde6470f4ff2

Contents?: true

Size: 241 Bytes

Versions: 83

Compression:

Stored size: 241 Bytes

Contents

class BankAccount < ActiveRecord::Base
  belongs_to :user
  belongs_to :bank

  validates :bank_id, :agency, :agency_digit, :account, :owner_name, :owner_document, :account_digit, presence: true

  def bank_code
    self.bank.code
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
catarse_pagarme-3.0.1 spec/dummy/app/models/bank_account.rb
catarse_pagarme-3.0.0 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.16.3 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.16.2 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.16.1 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.16.0 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.15.0 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.14.14 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.14.13 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.14.12 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.14.11 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.14.10 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.14.9 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.14.8 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.14.7 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.14.6 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.14.5 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.14.4 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.14.3 spec/dummy/app/models/bank_account.rb
catarse_pagarme-2.14.2 spec/dummy/app/models/bank_account.rb