Module: Callbacker::Callbackable

Defined in:
lib/callbacker/callbackable.rb

Overview

The Callbackable module provides a mechanism to attach before and after callbacks to a class implementing Workflow or WorkflowActiveRecord functionality. This enables both before and after callbacks to be executed around a state transition manifested by an event.

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

The ClassMethods module provides the methods that are extended onto the class that includes the Callbackable module.



11
12
13
14
# File 'lib/callbacker/callbackable.rb', line 11

def self.included(base)
  base.include(InstanceMethods)
  base.extend(ClassMethods)
end