Module: Callbacker::Validatable
- Defined in:
- lib/callbacker/validatable.rb
Overview
The Validatable module provides a mechanism to attach validators to a class implementing Workflow or WorkflowActiveRecord functionality. This enables these validators to allow or prevent a state transition before it happens by returning true or false respectively.
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 |
# File 'lib/callbacker/validatable.rb', line 8 def self.included(base) base.include(InstanceMethods) base.extend(ClassMethods) end |