class Account
Public Class Methods
destroyed_account_ids()
click to toggle source
# File activerecord/test/models/account.rb, line 9 def self.destroyed_account_ids @destroyed_account_ids ||= Hash.new { |h, k| h[k] = [] } end
open()
click to toggle source
Test private kernel method through collection proxy using has_many.
# File activerecord/test/models/account.rb, line 14 def self.open where("firm_name = ?", "37signals") end
Private Instance Methods
check_empty_credit_limit()
click to toggle source
# File activerecord/test/models/account.rb, line 27 def check_empty_credit_limit errors.add("credit_limit", :blank) if credit_limit.blank? end
private_method()
click to toggle source
# File activerecord/test/models/account.rb, line 31 def private_method "Sir, yes sir!" end