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

Use .to_s on warning.file in patch_for_warning() #18

Merged
merged 1 commit into from
Jul 1, 2019
Merged

Use .to_s on warning.file in patch_for_warning() #18

merged 1 commit into from
Jul 1, 2019

Conversation

alessio-signorini
Copy link
Contributor

At least with Ruby v2.6.3 and Rails 6 the comparison patch.new_file_full_path.to_s == warning.file does not work because warning.file returns an object and not a path.

This small patch uses warning.file.to_s to remedy the issue.

At least with Ruby v2.6.3 and Rails 6 the comparison `patch.new_file_full_path.to_s == warning.file` does not work because `warning.file` returns an object and not a path. This small patch uses `warning.file.to_s` to remedy the issue.
@doomspork doomspork requested a review from a team July 1, 2019 00:00
@doomspork doomspork merged commit aad572f into prontolabs:master Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants