瀏覽代碼

model add scope

abiao 4 年之前
父節點
當前提交
a74790ac4d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/models/product.rb

+ 1 - 1
app/models/product.rb

@@ -137,7 +137,7 @@ class Product < ActiveRecord::Base
                 end
             end
             puts admin
-            puts mer
+            # puts mer
             # authorize! :index, @user, :message=> 'Not authorized as an administrator.'
 
             scopes [:inactive]