rails-erd icon indicating copy to clipboard operation
rails-erd copied to clipboard

Fix for adding require false option in Gemfile

Open kikunantoka opened this issue 6 years ago • 4 comments
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.rake to tasks/erd.rake
  • Fix template for adding requirement.
  • Fix README for adding require false option.

kikunantoka avatar Jul 30 '19 08:07 kikunantoka

Thank you for your reviewing.

kikunantoka avatar Oct 31 '19 09:10 kikunantoka

Hi there! Any news?

n-rodriguez avatar Aug 14 '22 17:08 n-rodriguez