Explorar el Código

model add scope

abiao hace 4 años
padre
commit
a74790ac4d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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]