preston / railroady

Ruby on Rails 3/4/5 model and controller UML class diagram generator. (`brew/port/apt-get install graphviz` before use!)
Other
1.72k stars 142 forks source link

adds support to skip classes in model diagrams. #115

Closed danmayer closed 1 year ago

danmayer commented 7 years ago

This should be a problem for controllers, but for models sometimes there are dynamically generated model associations and there is no way to exclude via a file name. The papertrail gem and it's associated versions table and PaperTrail::Version model being a great example. It is on nearly every model we have so it really clutters up model diagrams and excluding it wasn't currently possible.

I currently monkey patched this feature into our rails app, but thought it might makes for a useful feature for other folks.

preston commented 7 years ago

@danmayer Seems like a great idea! Could you reverify your projects on the current v1.5.3 release? Looks simple but just want to confirm it's working as expected.

Any community concerns with merging this in?

danmayer commented 7 years ago

Awesome thanks for taking a look. I just verified on our projects that it still works at version 1.5.3

danmayer commented 7 years ago

Let me know if you need anything else.