Why is this gem not adding rake tasks to a Rails app?

Viewed 1482
3 Answers

in my case, the project requiring the gem had a rake file, and the gem I was requiring had the same name when I changed the name of the rake file I could see the tasks in the project.

my_gem had lib/tasks/XXXX.rake and my_proj also had lib/tasks/XXXX.rake, after I changed my_gem XXXX.rake to YYYY.rake I managed to list and use the tasks in YYYY.rake

Related