abiao 4 rokov pred
rodič
commit
e0fe840a07
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      app/models/product.rb

+ 1 - 1
app/models/product.rb

@@ -2,7 +2,7 @@
 class Product < ActiveRecord::Base
     has_paper_trail
     self.table_name = 'products'
-    devise :AdminUser
+    devise :update,AdminUser,:user_id
 
     #Thread.current[:current_user] = @current_user
     scope :active, -> { where(ptype: "cent_sale") }