Module: CaRuby::Migratable

Includes:
Jinx::Migratable
Included in:
Resource
Defined in:
lib/caruby/migration/migratable.rb

Overview

The Migratable mix-in adds migration support for CaRuby Resource domain objects. This module augments the Jinx::Migratable mix-in.

Instance Method Summary collapse

Instance Method Details

#migratable_independent_attributesObject

Overrides the default Jinx::Migratable method to return this Resource’s class Propertied#saved_independent_attributes.

Returns:

  • the attributes to migrate



13
14
15
# File 'lib/caruby/migration/migratable.rb', line 13

def migratable_independent_attributes
  self.class.saved_independent_attributes
end