v2.0.1 - The Namespace Whisperer 🔮
What's New
A quick patch release to keep your namespaced models happy!
Bug Fixes 🐛
-
Fix mermaid syntax errors for namespaced class names (#450, #451)
Thanks to @aseroff for reporting that models like
Admin::UserandApi::V1::Resourcewere causing Mermaid syntax errors! Turns out Mermaid's erDiagram needs double quotes around entity names containing::. Now your beautifully organized namespaced Rails models render correctly. -
Fix test helper for namespaced models (#451)
While fixing the above, we discovered the test helper
create_module_modelwas creatingAdmin::Author::Authorinstead ofAdmin::Author. Oops! 🙈
Internal 🔧
-
Use temp directory for test output files (#453)
Tests now write diagram files to the system temp directory instead of polluting the project root. Cleaner repo, happier developers.
Full Changelog: v2.0.0...v2.0.1
Installation
gem 'rails-erd', '~> 2.0.1'