Module: RubyCAS::Server::Core::Consumable

Defined in:
lib/rubycas/server/activerecord/model/consumable.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



9
10
11
# File 'lib/rubycas/server/activerecord/model/consumable.rb', line 9

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

Instance Method Details

#consume!Object



4
5
6
7
# File 'lib/rubycas/server/activerecord/model/consumable.rb', line 4

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