Class: Dscf::Core::User

Inherits:
ApplicationRecord show all
Includes:
UserAuthenticatable
Defined in:
app/models/dscf/core/user.rb

Class Method Summary collapse

Methods included from UserAuthenticatable

#active?, #authenticate_with_password, #generate_auth_tokens, #locked?, #revoke_all_tokens, #track_device, #valid_for_authentication?

Class Method Details

.ransackable_associations(_auth_object = nil) ⇒ Object



21
22
23
# File 'app/models/dscf/core/user.rb', line 21

def self.ransackable_associations(_auth_object = nil)
  %w[refresh_tokens user_roles roles businesses addresses documents user_profile]
end

.ransackable_attributes(_auth_object = nil) ⇒ Object



17
18
19
# File 'app/models/dscf/core/user.rb', line 17

def self.ransackable_attributes(_auth_object = nil)
  %w[id email phone verified_at created_at updated_at]
end