Bugs: Browse | Submit New | Admin

[#15269] Don't recognize model files

Date:
2007-11-01 18:23
Priority:
3
Submitted By:
Guillaume Dufloux (gdufloux)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Don't recognize model files

Detailed description
Hi, I thanks for this script :)

For each files in models/ directory, I have the following ouput: 

'Not a model file'

The dot file is created, but nearly empty:

digraph structs {
label = "black :belongs_to\nblue :has_many \nred :has_one \nmagenta :has_and_belongs_to "
}

This problem seems to come from method 'new' on a non-existant evaluated class.

Any idea?

Regards, 
Guillaume

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-11-01 18:46
Sender: Guillaume Dufloux

Hi, 

A patch has been submitted (15271) :
http://rubyforge.org/tracker/index.php?func=detail&aid=15271&
amp;group_id=2869&atid=11042

Feedbacks are welcome :)

Regards,
Guillaume
Date: 2007-11-01 18:27
Sender: Guillaume Dufloux

The problem does come from method 'new' called on evaluated
class that is not in context.

I corrected it adding 'require fname' for each file
It now need 'require "../config/environment"'.

Cool, I've my graph ;)

I soon attach a patch.

Regards,
Guillaume

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item