Method: MaglevRecord::Change#changed_classes

Defined in:
lib/maglev_record/snapshot/change.rb

#changed_classesObject



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/maglev_record/snapshot/change.rb', line 14

def changed_classes
  changes = []
  @new.class_snapshots.each{ |new|
    @old.class_snapshots.each { |old|
      if  old == new and
          new.changed_since? old
        changes << new.changes_since(old)
      end
    }
  }
  changes
end