|
@@ -4,7 +4,7 @@ class CashBalance < ActiveRecord::Base
|
|
|
self.table_name = "cash_balances"
|
|
self.table_name = "cash_balances"
|
|
|
belongs_to :wx_user, :foreign_key => :wx_uid
|
|
belongs_to :wx_user, :foreign_key => :wx_uid
|
|
|
validates_presence_of :wx_uid, :count, :relate_id, :source
|
|
validates_presence_of :wx_uid, :count, :relate_id, :source
|
|
|
- attr_accessor :remain_sum,get_happen_total
|
|
|
|
|
|
|
+ attr_accessor :remain_sum,:get_happen_total
|
|
|
|
|
|
|
|
#after_find :get_happen_total
|
|
#after_find :get_happen_total
|
|
|
|
|
|