Module: Interdependence::CommonMixin::MixinMethods

Defined in:
lib/interdependence/common_mixin.rb

Overview

methods mixed into Model and Validator

Instance Method Summary collapse

Instance Method Details

#included(base) ⇒ undefined

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Extends ClassMethods, adds and clears ‘dependencies` class attributes

Returns:

  • (undefined)


25
26
27
28
29
30
31
32
# File 'lib/interdependence/common_mixin.rb', line 25

def included(base)
  base.extend(ClassMethods)
  base.extend(self::ClassMethods)

  base.class_attribute :dependencies, :validate_calls
  base.validate_calls = []
  base.clear_dependencies!
end