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

refactored the full_messages method and stop overriding full_message #1988

Merged

Conversation

hosseintoussi
Copy link
Contributor

Hi, Thank you for your work here 🙏.

This PR is an attempt to address: #1954.

As mentioned in the issue, Ruby 2.5 add a full_message to Exception (https://ruby-doc.org/core-2.5.0/Exception.html#full_message-method). Grape overrides this and to stop that this PR removes the full_message private method.

@grape-bot
Copy link

grape-bot commented Feb 8, 2020

1 Warning
⚠️ There’re library changes, but not tests. That’s OK as long as you’re refactoring existing code.

Generated by 🚫 danger

with this I'm getting rid of `full_message` method which
in ruby 2.5 returns a formatted string of the error.
https://ruby-doc.org/core-2.5.0/Exception.html#full_message-method
@dblock dblock merged commit 3f17a27 into ruby-grape:master Feb 10, 2020
@dblock
Copy link
Member

dblock commented Feb 10, 2020

Thanks

@hosseintoussi hosseintoussi deleted the refactor_full_messages_method branch February 14, 2020 10:51
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.

None yet

3 participants