Class: Defcon::AdminUser
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Defcon::AdminUser
- Defined in:
- app/models/defcon/admin_user.rb
Instance Method Summary collapse
Instance Method Details
#locked_out? ⇒ Boolean
10 11 12 13 14 15 16 17 18 19 |
# File 'app/models/defcon/admin_user.rb', line 10 def locked_out? if self.max_attempts.nil? return false end if self.attempts > self.max_attempts return true else return false end end |