|
@@ -121,7 +121,7 @@ class Product < ActiveRecord::Base
|
|
|
if self.buy_price != 0 && self.price != 0
|
|
if self.buy_price != 0 && self.price != 0
|
|
|
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 current_admin_user.email
|
|
|
|
|
|
|
+ return @current_user.email
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
rails_admin do
|
|
rails_admin do
|