class ESA::Event

The Event class represents an event of significance to accounting, which triggers the creation of Flags, which in turn create Transactions.

@author Lenno Nagel

Private Instance Methods

initialize_defaults() click to toggle source
# File app/models/esa/event.rb, line 30
def initialize_defaults
  self.time ||= Time.zone.now if self.time.nil?
  self.ruleset ||= Ruleset.extension_instance(self.accountable) if self.ruleset_id.nil? and not self.accountable_id.nil?
  self.processed ||= false
end