You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More debugging shows that block always returns nil, because when expose_nil: is present, the content of options inside block is changed completely; which this debugging serializer shows:
…e using a block (#381)
* Pass the right options when determining whether to expose an attribute using a block
Fixes#378
* Autocorrect Rubocop offenses
Minimum reproducible example:
More debugging shows that block always returns
nil
, because whenexpose_nil:
is present, the content ofoptions
inside block is changed completely; which this debugging serializer shows:It prints this values for options inside blocks (and yes, in this order):
It seems that block in this case receives "options passed to
expose
DSL" instead of "options passed to serialization"?..The text was updated successfully, but these errors were encountered: