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
-
#after_create ⇒ Object
called just before a ticket that has been updated is saved to the ticketing system.
-
#after_update ⇒ Object
called just after a ticket that has been updated is saved to the ticketing system.
-
#before_create ⇒ Object
called just before a ticket that has not been saved to the ticketing system is saved.
-
#before_update ⇒ Object
Called immediately a ticket that has not been saved is saved.
Instance Method Details
#after_create ⇒ Object
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_update ⇒ Object
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_create ⇒ Object
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_update ⇒ Object
Called immediately a ticket that has not been saved is saved.
13 |
# File 'lib/roart/callbacks.rb', line 13 def before_update; end |