abiao 4 년 전
부모
커밋
2cb6171b2b
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      app/models/cash_balance.rb

+ 1 - 4
app/models/cash_balance.rb

@@ -5,7 +5,7 @@ class CashBalance < ActiveRecord::Base
   belongs_to :wx_user, :foreign_key => :wx_uid
   validates_presence_of :wx_uid, :count, :relate_id, :source
   attr_accessor :remain_sum
-  #after_find :get_happen_total
+  after_find :get_happen_total
 
   SOURCE_ENUM = [["提货券充值佣金", "balance_benefit"],
                  ["商品佣金", "product_benefit"],
@@ -93,9 +93,6 @@ class CashBalance < ActiveRecord::Base
 
       field :get_happen_total do
         visible true
-        formatted_value do
-          bindings[:object].get_happen_total
-        end
       end
     end