Patches: Browse | Submit New | Admin

[#22432] Enhanced Model Diagram generation

Date:
2008-10-15 14:34
Priority:
3
Submitted By:
David Anderson (eymiha)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Enhanced Model Diagram generation

Detailed description
- Changed the display of magic fields in model nodes to be off by default.
  They are only included in the dot file when --show-magic is passed.
  --hide-magic is now a no-op (but retained for backward compatibility)

- Added support for visibility of non-standard associations fields in the
  node. The default is to hide them unless --show-assoc-fields is passed.
  If the type is a model class, the name of the class is displayed.

- Added support to focus on model classes in a dot file by name using
  -F class1[,classN]. Only focused nodes, the nodes they connect to, and
  the associations between them are displayed, subject to any additional
  model class exclusions (-E) or inclusions (-I) that are specified. This
  allows a subset of the model to be displayed in isolation.

- Added support to exclude model classes from a dot file by name using
  -E class1[,classN]. Model nodes and direct associations with excluded
  classes are supressed.

- Added support to include model classes in a dot file by name using
  -I class1[,classN]. Model nodes and direct associations with included
  classes are displayed.

- Added support to display model nodes in 'brief' mode except when specified
  as a focused node using -B.

- Added support to hide unconventional association labels using --hide-uaslab.

- Added support to hide polymorphic association labels using --hide-paslab.

- Added support to hide through association labels using --hide-taslab.

- Added support to hide all association labels using --hide-aslab.

- Added support to create a focused diagram for each model class in its own
  dot file using -O FILE. The output file name for each model is created as
  FILE<model_name>.dot, and FILE may include directory separators.

- Changed the color of polymorphic associations and text to be red.

- Changed the color of through associations and text to be dark green.

- Changed the color of unconventional associations and text to be blue, or
  navy if only one side of the association is unconventional.

- General cleanup/refactoring of lib/railroad/models_diagram.rb.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
railroad.patch diff of the changes with railroad-0.5.0 Download

Changes:

Field Old Value Date By
File Added4096: railroad.patch2008-10-15 14:35eymiha