gemhome / rails-erd

retired fork, DO NOT USE. see https://github.com/voormedia/rails-erd
MIT License
0 stars 0 forks source link

Only, Exclude option is not working #11

Open bf4 opened 9 years ago

bf4 commented 9 years ago

Issue by railsfactory-palpandi Wednesday Apr 24, 2013 at 11:54 GMT Originally opened as https://github.com/voormedia/rails-erd/issues/50


Hi,

This libraery is very good to use but there is some issue which fine while using this library.

I am get any output based on only, exclude options.

I have use this rake command from my rails application root directory.

bundle exec rake erd title='ContractPort ER Diagram' exclude="StatusInfo, Setting"

Kindly replay and fix the issues ASAP.

bf4 commented 9 years ago

Comment by rolftimmermans Wednesday Apr 24, 2013 at 11:56 GMT


Thanks for your report. Please provide a copy of your application or at least your models & database schema to reproduce.

bf4 commented 9 years ago

Comment by diegoesp Sunday May 12, 2013 at 16:25 GMT


Hi Everyone,

Thanks for this wonderful library.

I've observed the same issue concretely when using ActiveAdmin. When launching rails-erd I receive these warnings:

Warning: Ignoring invalid association :resource on ActiveAdmin::Comment (polymorphic interface Resource does not exist)
Warning: Ignoring invalid association :author on ActiveAdmin::Comment (polymorphic interface Author does not exist)

Which is OK. But if I specify the following:

bundle exec erd --exclude="ActiveAdmin::Comment"

Or even the following:

bundle exec erd --exclude="Comment"

I kept receiving the same warnings and the model ActiveAdmin::Comment in the PDF output.

In case it is not possible to diagnose this situation with this info, i can try to isolate the situation in a small code package. Sending my whole app would lost you significant time, I think.

Best