Sha256: 2d3ad0af174ccb6defdca97a6c5b6706bdca1b5e4db2a390ef267686aa10fcbe

Contents?: true

Size: 548 Bytes

Versions: 4

Compression:

Stored size: 548 Bytes

Contents

require 'jinx/migration/migratable'

module CaRuby
  # The Migratable mix-in adds migration support for CaRuby {Resource} domain objects.
  # This module augments the +Jinx::Migratable+ mix-in.
  module Migratable
    include Jinx::Migratable
                 
    # Overrides the default +Jinx::Migratable+ method to return this Resource's class
    # {Propertied#saved_independent_attributes}.
    #
    # @return the attributes to migrate
    def migratable_independent_attributes
      self.class.saved_independent_attributes
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
caruby-core-2.1.4 lib/caruby/migration/migratable.rb
caruby-core-2.1.3 lib/caruby/migration/migratable.rb
caruby-core-2.1.2 lib/caruby/migration/migratable.rb
caruby-core-2.1.1 lib/caruby/migration/migratable.rb