ソースを参照

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]