소스 검색

model add scope

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

+ 2 - 1
app/models/product.rb

@@ -144,6 +144,7 @@ class Product < ActiveRecord::Base
 =end
             puts 1233334
             puts mer
+
             scopes [:inactive]
             filters [:id,:detail,:status,:name]
 
@@ -171,7 +172,7 @@ class Product < ActiveRecord::Base
             #field :robo_balance_price
             field :user_sale_price
             # field :buy_price
-            # field :gross_interest_rate
+            field :gross_interest_rate
             field :count
             field :recommend
             field :status