Module: ErpTxnsAndAccts::Extensions::ActiveRecord::ActsAsFinancialTxnAccount::InstanceMethods

Defined in:
lib/erp_txns_and_accts/extensions/active_record/acts_as_financial_txn_account.rb

Instance Method Summary collapse

Instance Method Details

#destroy_financial_txn_account ⇒ Object



63
64
65
# File 'lib/erp_txns_and_accts/extensions/active_record/acts_as_financial_txn_account.rb', line 63

def 
					  self..destroy if (self. && !self..frozen?)
end

#initialize_financial_txn_account ⇒ Object



51
52
53
54
55
56
57
# File 'lib/erp_txns_and_accts/extensions/active_record/acts_as_financial_txn_account.rb', line 51

def 
  if self.new_record? and self..nil?
    f = FinancialTxnAccount.new
    self. = f
    f. = self
  end
end

#save_financial_txn_account ⇒ Object



59
60
61
# File 'lib/erp_txns_and_accts/extensions/active_record/acts_as_financial_txn_account.rb', line 59

def 
  self..save
end