Selaa lähdekoodia

model add scope

abiao 4 vuotta sitten
vanhempi
commit
a74790ac4d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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]