Forum: Ruby on Rails A tool for analyzing ActiveRecord model associations in rails projects

93e541fb8c13534773ed5923e4a3b712?d=identicon&s=25 4r2r ... (4r2r)
on 2014-05-21 20:32
Hello. First time poster here :)

Long story short: I've got tired of trying to figure out model relations
in big rails projects with more than 20 models.

Before I've tried to use rails-erd, which turned out to be a PITA to
conceive.

So I figured out a different approach where model relations are
organized in a tree-like pattern like this (example from one of the
projects):

Metric
  MetricConfiguration
    ActionInstance
      Action::EmailInstance
    Schedule
    Threshold
  MetricInstance

You can check out the tool here
https://gist.github.com/4r2r/10317c83f964ee072066

Any feedback would be greatly appreciated!
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.