Skip to content

Instantly share code, notes, and snippets.

Avatar

Jared Knipp jknipp

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jknipp on github.
  • I am jknipp (https://keybase.io/jknipp) on keybase.
  • I have a public key ASDTSErVi6HYVK4VBxZManPsfzc0ydBV4x0s5n-Gw37a9Ao

To claim this, I am signing this object:

View gist:937571
class Account < ActiveRecord::Base
set_primary_key "AccountId"
belongs_to :bank, :foreign_key => 'CompanyId'
scope :mcm_bank_and_account_number, lambda { |mcm_bank_id, acct|
joins(:bank).
where("bank.MCMBankNumber = ? AND account.AccountNumber = ?", mcm_bank_id, acct).merge(Bank.mcm_bank)
}