Module: CASServer::Models::Consumable

Included in:
LoginTicket, ServiceTicket
Defined in:
lib/casserver/models.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



11
12
13
# File 'lib/casserver/models.rb', line 11

def self.included(mod)
  mod.extend(ClassMethods)
end

Instance Method Details

#consume!Object



6
7
8
9
# File 'lib/casserver/models.rb', line 6

def consume!
  self.consumed = Time.now
  self.save!
end