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

Diagram for model vs subdirectory model is not generated correctly #66

Open
swigrid opened this issue May 25, 2014 · 7 comments
Open

Diagram for model vs subdirectory model is not generated correctly #66

swigrid opened this issue May 25, 2014 · 7 comments

Comments

@swigrid
Copy link

swigrid commented May 25, 2014

hello, i have found if you have models like these two below

class System::User < ActiveRecord::Base
has_many :patients, foreign_key: "system_user_id"
end

class Patient < ActiveRecord::Base
belongs_to :system_user, :class_name => 'System::User', foreign_key: "system_user_id"
end

on diagram, model patient is not linked with model System::User instead new(non existing) model System::Patient is shown.

screen shot 2014-05-25 at 12 50 04

@groverz
Copy link

groverz commented May 2, 2015

Same problem.

λ h0-osx1 oliva → λ git master* → railroady -a --all-columns -t -i -m -p -z -o full_models.dot -M -v
Loading application environment
/usr/local/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /usr/local in PATH, mode 040777
Loading application classes as we go
Generating models diagram
Processing Admin
Warning: exception uninitialized constant Account raised while trying to load model class app/models/avito/account.rb
Warning: exception uninitialized constant Posting raised while trying to load model class app/models/avito/posting.rb
Warning: exception uninitialized constant Task raised while trying to load model class app/models/avito/task.rb
Warning: exception uninitialized constant Tasklog raised while trying to load model class app/models/avito/tasklog.rb
Processing Avito
Processing Image
- Processing model association user
ActiveRecord::Base
Processing User
- Processing model association invited_by
- Processing model association avito_tasks
- Processing model association avito_postings
- Processing model association avito_accounts
- Processing model association images
ActiveRecord::Base
Generating DOT graph

@groverz
Copy link

groverz commented May 2, 2015

YAY! Closed 👍

gem 'railroady', :git => "https://github.com/preston/railroady.git"

@petrbela
Copy link

👍

@petrbela
Copy link

Actually, just the second problem seems to be fixed; the original one still remains.

@gentaro-sakamoto
Copy link

👍

@aldodelgado
Copy link

Any update on this? I'm getting the same results.

@preston
Copy link
Owner

preston commented May 18, 2018

Not from me. I have namespaced models in a particular project but haven't seen this issue. :/

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

6 participants