Class: LoginAttempt

Inherits:
ApplicationRecord
  • Object
show all
Includes:
HasOwner, HasTrack
Defined in:
app/models/login_attempt.rb

Overview

Failed login attempt

Attributes:

agent_id [Agent], optional
created_at [DateTime]
ip_address_id [IpAddress], optional
updated_at [DateTime]
user_id [User]
password [string]

Class Method Summary collapse

Methods included from HasOwner

#owned_by?, #owner_name

Class Method Details

.page_for_administration(page = 1) ⇒ Object

Parameters:

  • page (Integer) (defaults to: 1)


26
27
28
# File 'app/models/login_attempt.rb', line 26

def self.page_for_administration(page = 1)
  list_for_administration.page(page)
end

.page_for_owner(user, page = 1) ⇒ Object

Parameters:

  • user (User)
  • page (Integer) (defaults to: 1)


32
33
34
# File 'app/models/login_attempt.rb', line 32

def self.page_for_owner(user, page = 1)
  list_for_owner(user).page(page)
end