Module: BusinessFlow::Validations
- Defined in:
- lib/business_flow/validations.rb
Overview
Responsible for adding validations to flow objects
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/business_flow/validations.rb', line 17 def self.included(klass) klass.include(ActiveModel::Validations) klass.class_eval do class << self alias_method :invariant, :validates end end klass.extend ClassMethods end |