2025-01-19 01:13:59 +08:00
|
|
|
class AdminUser < ApplicationRecord
|
|
|
|
# Include default devise modules. Others available are:
|
|
|
|
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
|
2025-01-20 18:08:55 +08:00
|
|
|
devise :database_authenticatable,
|
2025-01-19 01:13:59 +08:00
|
|
|
:recoverable, :rememberable, :validatable
|
2025-01-19 12:21:00 +08:00
|
|
|
|
|
|
|
def self.ransackable_attributes(auth_object = nil)
|
|
|
|
# 列出你想要允许搜索的属性
|
|
|
|
%w[created_at email id updated_at]
|
|
|
|
end
|
2025-01-19 01:13:59 +08:00
|
|
|
end
|