lib/railroad/models_diagram.rb in railroad-0.4.0 vs lib/railroad/models_diagram.rb in railroad-0.4.1

- old
+ new

@@ -8,11 +8,11 @@ # RailRoad models diagram class ModelsDiagram < AppDiagram def initialize(options) - options.exclude.map! {|e| e = "app/models/" + e} + options.exclude.map! {|e| "app/models/" + e} super options @graph.diagram_type = 'Models' # Processed habtm associations @habtm = [] end @@ -88,10 +88,9 @@ # Only consider meaningful inheritance relations for generated classes if @options.inheritance && generated && (current_class.superclass != ActiveRecord::Base) && (current_class.superclass != Object) - # REVERSE INHERITANCE (CHECK) @graph.add_edge ['is-a', current_class.superclass.name, current_class.name] end end # process_class