|
@@ -129,17 +129,17 @@ class Product < ActiveRecord::Base
|
|
|
weight -240
|
|
weight -240
|
|
|
|
|
|
|
|
list do
|
|
list do
|
|
|
- admin=""
|
|
|
|
|
|
|
+ strs=""
|
|
|
field :gross_interest_rate do
|
|
field :gross_interest_rate do
|
|
|
visible false
|
|
visible false
|
|
|
formatted_value{bindings[:view].current_admin_user.email}
|
|
formatted_value{bindings[:view].current_admin_user.email}
|
|
|
- if admin.length==0
|
|
|
|
|
- admin=formatted_value{bindings[:view].current_admin_user.email}
|
|
|
|
|
|
|
+ if strs.length==0
|
|
|
|
|
+ strs=formatted_value{bindings[:view].current_admin_user.email}
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
- puts admin
|
|
|
|
|
- if admin.length==0
|
|
|
|
|
|
|
+ puts strs
|
|
|
|
|
+ if strs.length==0
|
|
|
scopes [:inactive]
|
|
scopes [:inactive]
|
|
|
end
|
|
end
|
|
|
|
|
|