Class: CASino::LoginTicket

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/casino/login_ticket.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.cleanupObject



5
6
7
# File 'app/models/casino/login_ticket.rb', line 5

def self.cleanup
  self.delete_all(['created_at < ?', CASino.config.[:lifetime].seconds.ago])
end

Instance Method Details

#to_sObject



9
10
11
# File 'app/models/casino/login_ticket.rb', line 9

def to_s
  self.ticket
end