Model dependency diagram enables you to get an overview of the models within your Rails application, and analyze their relationships.
- Do one of the following:
- On the context menu of the Project tool window, or the editor, point to , and choose or .
- Press Ctrl+Shift+Alt+UCtrl+Shift+Alt+UCtrl+Shift+Alt+UCtrl+Shift+Alt+UCtrl+Shift+Alt+UCtrl+Shift+Alt+UCtrl+Shift+Alt+UCtrl+Shift+Alt+UShift+Alt+Meta+UShift Alt Command UShift Alt Command UShift Alt Command UShift Alt Command U, or Ctrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UAlt+Meta+UAlt Command UAlt Command UAlt Command UAlt Command U.
- Select the type of diagram from the pop-up window:
If you invoke Model Dependency diagram for a specific model, the diagram will open with the model in question centered and having the focus, and zoomed to actual size.
- Select elements.
- Add notes, delete elements.
- Change diagram layout.
- Change diagram scale.
- Navigate to source code.
- Navigate through the models using the Structure view (Ctrl+F12Ctrl+F12Ctrl+0Ctrl+F12Ctrl+F12Ctrl+F12Ctrl+F12 or Ctrl+Shift+F12Ctrl+F3 or Ctrl+OMeta+F12Command F12Command F12Command OCommand F12).
- Find usages of the selected node element.
- Invoke refactoring commands.
Keeping the Alt key pressed invokes the magnifier tool,
which will help you have a closer look at the most interesting or problematic areas of your Model dependency diagram.