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

Fixes Rails/RootPathnameMethods offense #12667

Merged

Conversation

cyrillefr
Copy link
Contributor

What? Why?

Contributes to #11482

The Rails/RootPathnameMethods
states:
Use Rails.root IO methods instead of passing it to File.

This is a tiny one.

What should we test?

Nothing.
Automatic specs should all pass.

Release notes

Changelog Category (reviewers may add a label for the release notes):

  • User facing changes
  • API changes (V0, V1, DFC or Webhook)
  • Technical changes only
  • Feature toggled

The title of the pull request will be included in the release notes.

@cyrillefr
Copy link
Contributor Author

Hello @sigmundpetersen , @mkllnk ,

I would need a rerun of the checks since fail appears only on CI.

Thanks

Copy link
Collaborator

@chahmedejaz chahmedejaz left a comment

Choose a reason for hiding this comment

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

It's great to know this method. Thanks for bringing it up 👍!

@chahmedejaz chahmedejaz mentioned this pull request Jul 12, 2024
23 tasks
@chahmedejaz chahmedejaz changed the title Fixex Rails/RootPathnameMethods offense Fixes Rails/RootPathnameMethods offense Jul 12, 2024
@mkllnk mkllnk merged commit f5875e4 into openfoodfoundation:master Aug 6, 2024
51 checks passed
@mkllnk mkllnk added the technical changes only These pull requests do not contain user facing changes and are grouped in release notes label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
technical changes only These pull requests do not contain user facing changes and are grouped in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants