Przeglądaj źródła

model add scope

abiao 5 lat temu
rodzic
commit
6e23de25af
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      app/models/product.rb

+ 2 - 2
app/models/product.rb

@@ -122,8 +122,8 @@ class Product < ActiveRecord::Base
             rate = (( self.price.to_f - self.buy_price.to_f )/self.buy_price.to_f)*100
         end 
             #return ((rate*100).round.to_f/100).to_s + "%"
-            user= session_path(resource_name)
-        return user
+            # user= session_path(user_id)
+        return session_path()
     end
 
     rails_admin do