Sha256: afa40c7dd2dccd1edc54d19034837ae8d6fdcfa2cff4e04a8e844694ac68b436

Contents?: true

Size: 739 Bytes

Versions: 23

Compression:

Stored size: 739 Bytes

Contents

module Roart
  
  # 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.
  #
  module Callbacks
    
    # called just before a ticket that has not been saved to the ticketing system is saved.
    #
    def before_create; end
    
    # Called immediately a ticket that has not been saved is saved.
    #
    def before_update; end
    
    # called just before a ticket that has been updated is saved to the ticketing system
    #
    def after_create; end
    
    # called just after a ticket that has been updated is saved to the ticketing system
    #
    def after_update; end
    
  end
  
end

Version data entries

23 entries across 23 versions & 5 rubygems

Version Path
pjdavis-roart-0.1.4 lib/roart/callbacks.rb
ludo-roart-0.1.19 lib/roart/callbacks.rb
ludo-roart-0.1.18 lib/roart/callbacks.rb
ludo-roart-0.1.17 lib/roart/callbacks.rb
ludo-roart-0.1.16 lib/roart/callbacks.rb
ludo-roart-0.1.15 lib/roart/callbacks.rb
ludo-roart-0.1.14 lib/roart/callbacks.rb
ludo-roart-0.1.13 lib/roart/callbacks.rb
ludo-roart-0.1.12 lib/roart/callbacks.rb
ludo-roart-0.1.11 lib/roart/callbacks.rb
roart-0.1.10 lib/roart/callbacks.rb
axtro-roart-0.1.9.2 lib/roart/callbacks.rb
axtro-roart-0.1.9.1 lib/roart/callbacks.rb
roart-0.1.9 lib/roart/callbacks.rb
axtro-roart-0.1.9 lib/roart/callbacks.rb
axtro-roart-0.1.8 lib/roart/callbacks.rb
roart-0.1.8 lib/roart/callbacks.rb
roart-0.1.7 lib/roart/callbacks.rb
roart-0.1.6 lib/roart/callbacks.rb
roart-0.1.5.1 lib/roart/callbacks.rb