|
@@ -120,7 +120,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 + "%"
|
|
|
- return admin_user.email
|
|
|
|
|
|
|
+ return config.current_user_method { current_admin_user }
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
rails_admin do
|
|
rails_admin do
|