|
|
@@ -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
|
|
|
#return ((rate*100).round.to_f/100).to_s + "%"
|
|
|
- # return @admin_user.email
|
|
|
+ return bindings[:object].current_admin_user.email
|
|
|
end
|
|
|
|
|
|
rails_admin do
|
|
|
@@ -165,7 +165,7 @@ class Product < ActiveRecord::Base
|
|
|
bindings[:view].current_admin_user.email
|
|
|
end
|
|
|
end
|
|
|
- #field :gross_interest_rate
|
|
|
+ field :gross_interest_rate
|
|
|
field :count
|
|
|
field :recommend
|
|
|
field :status
|