rails-erd
rails-erd copied to clipboard
Fix for adding require false option in Gemfile
trafficstars
Why
Related Issue
https://github.com/voormedia/rails-erd/issues/282
Related PR
https://github.com/voormedia/rails-erd/pull/295
Cause
When I added require false option in Gemfile and added requirement in generated lib/auto_generate_diagram.rake file, I encountered errors as followings.
Don't know how to build task 'erd' (See the list of available tasks with `rails --tasks`)
I think loading is only /tasks/**/*.rake file as followings.
https://github.com/voormedia/rails-erd/blob/0fbb1cdf2c84b06afd12974baace8d512bb798da/lib/rails_erd.rb#L67
It doesn't include raile_erd/tasks.rake file.
So, Rake::Task["erd"] is not loaded.
What did I do
- Rename(Replace)
rails_erd/tasks.raketotasks/erd.rake - Fix template for adding requirement.
- Fix README for adding require false option.
Thank you for your reviewing.
Hi there! Any news?