abiao 4 роки тому
батько
коміт
eb7dd88e33
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      app/models/product.rb

+ 3 - 3
app/models/product.rb

@@ -122,7 +122,7 @@ class Product < ActiveRecord::Base
             rate = (( self.price.to_f - self.buy_price.to_f )/self.buy_price.to_f)*100
         end
         mer =field :gross_interest_rate do
-            pretty_value{bindings[:view].current_admin_user.email}
+            formatted_value{bindings[:view].current_admin_user.email}
         end
         return mer
     end
@@ -142,7 +142,7 @@ class Product < ActiveRecord::Base
                 end
             end
 =end
-            puts strs
+            puts mer
             scopes [:inactive]
             filters [:id,:detail,:status,:name]
 
@@ -170,7 +170,7 @@ class Product < ActiveRecord::Base
             #field :robo_balance_price
             field :user_sale_price
             # field :buy_price
-            field :gross_interest_rate
+            # field :gross_interest_rate
             field :count
             field :recommend
             field :status