Module: CASServer::Model::Consumable

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

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



12
13
14
# File 'lib/casserver/model.rb', line 12

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

Instance Method Details

#consume!Object



7
8
9
10
# File 'lib/casserver/model.rb', line 7

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