abiao преди 4 години
родител
ревизия
d668696342
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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_for :admins
+    devise :admins
 
     #Thread.current[:current_user] = @current_user
     scope :active, -> { where(ptype: "cent_sale") }