Class: CASino::LoginTicket
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- CASino::LoginTicket
- Defined in:
- app/models/casino/login_ticket.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.cleanup ⇒ Object
5 6 7 |
# File 'app/models/casino/login_ticket.rb', line 5 def self.cleanup self.delete_all(['created_at < ?', CASino.config.login_ticket[:lifetime].seconds.ago]) end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'app/models/casino/login_ticket.rb', line 9 def to_s self.ticket end |