Skip to content

🔥 Remove FetchableObject #369

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

Merged
merged 8 commits into from
Feb 16, 2023
Merged

🔥 Remove FetchableObject #369

merged 8 commits into from
Feb 16, 2023

Conversation

danielvdao
Copy link
Contributor

@danielvdao danielvdao commented Sep 15, 2022

Context

A PR addressing this issue: #368

The thing I am confused about is why we check if object.respond_to?(:fetch, true). Implementing #fetch is tricky and I think that most of the time (if not always) we should rely on Hash to implement #fetch as that's in Ruby stdlib. Otherwise just default to #public_send.

Happy to close if it doesn't make sense either - but wanted to give it a shot and it looks like all tests still pass.

cc @LeFnord

@LeFnord
Copy link
Member

LeFnord commented Feb 15, 2023

sorry @danielvdao … for the latency, shame on me

please can an CHANGELOG and UPGRADE entry thanks

@danielvdao
Copy link
Contributor Author

Thanks, I'll take care of it 🔥

@danielvdao
Copy link
Contributor Author

@LeFnord done! Let me know if this is what you were looking for.

@danielvdao
Copy link
Contributor Author

Hey @LeFnord some of the Rubocop violations are going off, but I don't think they're related to my PR. What do you think? 🤔

@LeFnord
Copy link
Member

LeFnord commented Feb 16, 2023

mmh, will have an eye on

@LeFnord
Copy link
Member

LeFnord commented Feb 16, 2023

I'm on it

@LeFnord
Copy link
Member

LeFnord commented Feb 16, 2023

thanks again

@LeFnord LeFnord merged commit 3393516 into ruby-grape:master Feb 16, 2023
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.

2 participants