Explorar o código

model add scope

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
1788e426bf
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/models/product.rb

+ 2 - 1
app/models/product.rb

@@ -132,7 +132,7 @@ class Product < ActiveRecord::Base
         weight -240
 
         list do
-            strs="123"
+
 =begin
             #field :gross_interest_rate do
                 visible false
@@ -142,6 +142,7 @@ class Product < ActiveRecord::Base
                 end
             end
 =end
+            puts 1233334
             puts mer
             scopes [:inactive]
             filters [:id,:detail,:status,:name]