Skip to content

Instantly share code, notes, and snippets.

Jared Knipp jknipp

Block or report user

Report or block jknipp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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)
You can’t perform that action at this time.