Rails ERD 2.0.2 - Less Is More ✨
Sometimes you just want to keep some things private. Your models have secrets, and now Rails ERD respects that. 🤫
✨ New Features
-
Hide attributes on a per-model basis (#421, #457)
Ever wanted to show
Userin your ERD but hide those 47 Devise columns? Now you can! The newexclude_attributesoption lets you selectively hide attributes for specific models while keeping everything else visible.# .erdconfig exclude_attributes: User: - encrypted_password - reset_password_token - confirmation_token
Huge thanks to @RSeven for this contribution! 🙌
🐛 Bug Fixes
-
Fix crash with polymorphic associations on Rails 8 (#454, #455, #456)
Rails 8 users with polymorphic associations and the
excludeoption were getting an unwelcomeNoMethodErrorsurprise. Not anymore! Thanks to @kennethgeerts for squashing this one. 🪲➡️💀
Full Changelog: v2.0.1...v2.0.2
RubyGems: https://rubygems.org/gems/rails-erd