abiao 4 rokov pred
rodič
commit
be1091851b
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 :users
+    devise :AdminUser
 
     #Thread.current[:current_user] = @current_user
     scope :active, -> { where(ptype: "cent_sale") }