module RubyCAS::Server::Core::Consumable

Public Class Methods

included(mod) click to toggle source
# File lib/rubycas/server/activerecord/model/consumable.rb, line 9
def self.included(mod)
  mod.extend(ClassMethods)
end

Public Instance Methods

consume!() click to toggle source
# File lib/rubycas/server/activerecord/model/consumable.rb, line 4
def consume!
  self.consumed = Time.now
  self.save!
end