Skip to content

v2.0.2 - Less Is More ✨

Latest

Choose a tag to compare

@kerrizor kerrizor released this 11 Jun 19:12
· 16 commits to master since this release

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 User in your ERD but hide those 47 Devise columns? Now you can! The new exclude_attributes option 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 exclude option were getting an unwelcome NoMethodError surprise. Not anymore! Thanks to @kennethgeerts for squashing this one. 🪲➡️💀


Full Changelog: v2.0.1...v2.0.2

RubyGems: https://rubygems.org/gems/rails-erd