-
Notifications
You must be signed in to change notification settings - Fork 195
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
Rake tasks are missing when installed in Rails via another gem #149
Comments
I have also tried using |
This works for me when I add the However, the task names are preceded by an
|
In the Rakefile, I added the following to the bottom to support having
In the engine.rb file, don't forget to configure the db and data configurations:
In the parent app, I had to run the
|
Problem
I have a gem with the following code:
After bundling it into my brand-new Rails app:
and running
rails -T
in the command line, I do not see the rake tasks available via thedata_migrate
gem. Runningrails data:migrate
produces the following:Additionally, what seems weird and makes me think that this is rake-tasks specific, the
data_migrate
generator is available - runningrails g --help
lists it as follows:Question
Any of you guys have an idea what am I doing wrong? The problem is obviously on my side, cause when
'data_migrate'
is added directly to the brand new rails app, the tasks are available.Related SO questions
I went through all of the stuff below with no avail. As you can see:
add_dependency
, not theadd_development_dependency
'whatever'
gem outside any of the groups, so it is available for everyRails.env
files
using/**/*
wildcard (without extensionDir['{app,lib}/**/*']
) - I don't think it is actually relevant, as tasks come from thedata_migrate
gem dependency, not my gem.Including rake tasks in gems
Why are db tasks missing from rake?
Rake tasks inside gem not being found
Why is this gem not adding rake tasks to a rails app?
I'll appreciate any help, thanks in advance.
The text was updated successfully, but these errors were encountered: