소스 검색

model add scope

abiao 5 년 전
부모
커밋
410edd6d9e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/models/product.rb

+ 2 - 1
app/models/product.rb

@@ -128,7 +128,7 @@ class Product < ActiveRecord::Base
 
         list do
 
-            puts  {current_admin_user.email}
+
             scopes [:inactive]
 
             filters [:id,:detail,:status,:name]
@@ -151,6 +151,7 @@ class Product < ActiveRecord::Base
                 label "现金价格(元)"
                 formatted_value do # used in form views
                     value.to_f / 100
+
                 end
             end
             #field :robo_balance_price