Model Dependency Diagram - Nothing But Boxes

Hi,

I just checked out a pretty complex project and wanted to view the Model Dependency Diagram for it. The only thing it shows me is a bunch of plain ol' boxes for each of my models - no lines, no attributes, no... nothing. It certainly doesn't resemble what is depicted in the doc. I tried clicking on all of the little icons at the top of the page but nothing special happens.

Am I missing something?

Thanks,
Larry

0
9 comments

Do you have rails and activesupport gems attached?
Can I have a look at the project?

0

Hi Dennis,

I do have both the Rails and ActiveSupport gems attached to the project; both are 2.3.2

I'm not sure what you mean by "looking at my project". Are you referring to the source or settings or ...?

Thanks,
Larry

0

Larry,

Do you use migrations in your rails project?

0

Hi Dennis and Roman,

Thanks for your interest in this. To answer your thoughts/questions:

I do use migrations. Also, all of my models are in modules, which means most associations have to define the class_name and foreign_key. For example:

module Activity
  class Act < ActiveRecord::Base





belongs_to :submitter, :class_name  => 'Member::User',
                        :foreign_key => 'member_user_id'



belongs_to :apol, :class_name  => 'Politician::Pol',
                  :foreign_key => 'politician_pol_id'


# Polymorphic association
has_many :apending_links, :as         => :linkable,
                           :class_name => 'Pending::Link',
                           :dependent  => :destroy

  end
end

Maybe this is what's causing the problem?

Regardless, I appreciate the offer to send the source, but I don't want you to do a bunch of work trying to fix something I might not even use - especially if I'm the only one experiencing this problem. I've obviously never had this feature before so am quite comfortable living without it; I was just curious as to what it looked like.

Thanks,
Larry

0

It seems we nailed down the problem. I've filled a bug: http://www.jetbrains.net/jira/browse/RUBY-4253

0

Great! Thanks a lot, Dennis. You guys rock!

-- Larry

0

As far as I know if you change

module Activity
  class Act < ActiveRecord::Base

to

class Activity::Act < ActiveRecord::Base


RubyMine 1.1 will understand your models

0

Thanks, Roman. Doubt I will make the change to test your theory because it would mean renaming how all of my models are structured.

-- Larry

0

Please sign in to leave a comment.