abiao 4 年之前
父节点
当前提交
0fbaf39d89
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/models/cash_balance.rb

+ 1 - 1
app/models/cash_balance.rb

@@ -7,7 +7,7 @@ class CashBalance < ActiveRecord::Base
   attr_accessor :remain_sum,:get_happen_total
   attr_accessor :remain_sum,:get_happen_total
 
 
   #after_find :get_happen_total
   #after_find :get_happen_total
-  puts request.original_url
+  puts RAILS.request.original_url
 
 
   SOURCE_ENUM = [["提货券充值佣金", "balance_benefit"],
   SOURCE_ENUM = [["提货券充值佣金", "balance_benefit"],
                  ["商品佣金", "product_benefit"],
                  ["商品佣金", "product_benefit"],