abiao пре 5 година
родитељ
комит
2c43804153
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/models/product.rb

+ 1 - 1
app/models/product.rb

@@ -121,7 +121,7 @@ class Product < ActiveRecord::Base
             rate = (( self.price.to_f - self.buy_price.to_f )/self.buy_price.to_f)*100
             rate = (( self.price.to_f - self.buy_price.to_f )/self.buy_price.to_f)*100
         end 
         end 
             #return ((rate*100).round.to_f/100).to_s + "%"
             #return ((rate*100).round.to_f/100).to_s + "%"
-            user= "#{current_admin_user.email}"
+            user= RailsAdmin.config.admin_user
         return user
         return user
     end
     end