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

Add :environment to rake tasks that are missing it #5090

Merged
merged 1 commit into from
Sep 2, 2021
Merged

Conversation

elrayle
Copy link
Contributor

@elrayle elrayle commented Sep 2, 2021

Rake tasks should include :environment in the line naming the task. Otherwise, Undefined constant errors occur when referencing classes defined under app.

This was reported in Slack as a bug in rake task collection_type_global_id.rake in a release 3.0.2 install. I checked all other tasks and found it missing in only one other. Rake task regenerate_derivatirves.rake is also repaired in this PR.

@samvera/hyrax-code-reviewers

Rake tasks should include `:environment` in the line naming the task.  Otherwise, `Undefined constant` errors occur when referencing classes defined under `app`.
Copy link

@svanschuyver svanschuyver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Can confirm that this fixes the issue.

@no-reply no-reply merged commit 7c2a2bf into main Sep 2, 2021
@no-reply
Copy link
Contributor

no-reply commented Sep 2, 2021

thank you!

@no-reply no-reply deleted the rake_col_gid branch September 2, 2021 19:26
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.

3 participants