Module: Roart::Callbacks

Included in:
Ticket
Defined in:
lib/roart/callbacks.rb

Overview

Callbacks are implemented to do a bit of logic either before or after a part of the object life cycle. These can be overridden in your Ticket class and will be called at the approprate times.

Instance Method Summary collapse

Instance Method Details

#after_createObject

called just before a ticket that has been updated is saved to the ticketing system



17
# File 'lib/roart/callbacks.rb', line 17

def after_create; end

#after_updateObject

called just after a ticket that has been updated is saved to the ticketing system



21
# File 'lib/roart/callbacks.rb', line 21

def after_update; end

#before_createObject

called just before a ticket that has not been saved to the ticketing system is saved.



9
# File 'lib/roart/callbacks.rb', line 9

def before_create; end

#before_updateObject

Called immediately a ticket that has not been saved is saved.



13
# File 'lib/roart/callbacks.rb', line 13

def before_update; end