Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant exception with namespaced models #86

Open
xylolink opened this issue Jan 29, 2015 · 1 comment
Open

uninitialized constant exception with namespaced models #86

xylolink opened this issue Jan 29, 2015 · 1 comment

Comments

@xylolink
Copy link

Hi all !

I use namespaces in my application. My models are like this :
School::Teacher in models/school/teacher.rb
School::Student in models/school/student.rb
School::Lesson in models/school/lesson.rb

When I try to generate diagrams, it raises the following exceptions for each model

Warning: exception uninitialized constant Student raised while trying to load model class app/models/school/student.rb

I think it's linked to this pull request : singlebrook#1

Is there a way to tell railroady to consider the parent folder name as a prefix to my models ?

Thanks!

@preston
Copy link
Owner

preston commented Jan 29, 2015

Hmm ... I thought someone added namespace/module names a while back. Want to submit a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants