-
Notifications
You must be signed in to change notification settings - Fork 152
Let the OutputBuilder be the Hash as well #232
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
Let the OutputBuilder be the Hash as well #232
Conversation
7d7797b
to
d96ef92
Compare
The build is toast, but I don't think it's your fault. If you don't mind taking a look though please. |
d96ef92
to
1b791b2
Compare
MRI 2.3: ✅ |
Yes please |
aa915f7
to
e1624d9
Compare
The same problem with |
@@ -4,6 +4,7 @@ | |||
* [#215](https://github.com/ruby-grape/grape-entity/pull/217): Fix: `#delegate_attribute` no longer delegates to methods included with `Kernel` - [@maltoe](https://github.com/maltoe). | |||
* [#219](https://github.com/ruby-grape/grape-entity/pull/219): Fix: double pass options in serializable_hash - [@sbatykov](https://github.com/sbatykov). | |||
* [#226](https://github.com/ruby-grape/grape-entity/pull/226): Add fetch method to fetch from opts_hash - [@alanjcfs](https://github.com/alanjcfs). | |||
* [#232](https://github.com/ruby-grape/grape-entity/pull/232): Fix: grape tests are green [#213](https://github.com/ruby-grape/grape-entity/issues/213) - [@avyy](https://github.com/avyy). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't material for users, so remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
However, the kind_of
change is relevant, so you should say something to that regard.
@dblock check last changes pls |
…class, specify rack, json and active_support version for supporting old rubies
8e11a2c
to
a6c8e85
Compare
Merging, thanks. |
#213
Hi everyone
The problem that we've changed the
Hash
output to theOutputBuilder
one (see #204) . Even though anOutputBuilder
instance delegates everything to itsoutput
object (which is aHash
) - it returnsfalse
when we do this:.is_a?(Hash)
on aOutputBuilder
instance.is_a?
method is not delegated. And grape errors formatters expect to get aHash
instance fromEntity
after representation, notOutputBuilder
one.I checked grape master branch and my grape-entity branch tests. Everything should be fine.