Skip to content

Instantly share code, notes, and snippets.


Jared Knipp jknipp

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jknipp on github.
  • I am 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|
where("bank.MCMBankNumber = ? AND account.AccountNumber = ?", mcm_bank_id, acct).merge(Bank.mcm_bank)