Module: MaglevRecord::Snapshotable

Extended by:
MaglevSupport::Concern
Included in:
Base
Defined in:
lib/maglev_record/snapshot/snapshotable.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Methods included from MaglevSupport::Concern

included

Class Method Details

.snapshotable_classesObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/maglev_record/snapshot/snapshotable.rb', line 7

def self.snapshotable_classes
  classes = []
  Object.constants.each { |constant|
    begin
      cls = Object.const_get constant
    rescue Exception
    else
      classes << cls if cls.is_a? Class and cls.ancestors.include? self
    end
  }
  classes
end