Skip to content
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

Move rake task loading into a Railtie; inherit the rails environment in said task #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

patch0
Copy link

@patch0 patch0 commented Nov 10, 2021

I was getting an NoMethodError due to the gem just loading the rake task if Rails was defined. This PR addresses that by creating a Railtie class where generators and rake tasks can be explicitly defined in the rails app.

Additionally, when running the contentful_migrations:migrate task I was getting errors indicating that the rails environment hadn't been loaded properly, so I've added that as a pre-requisite for the task to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant