Support for specifying context #320
mattandayo
started this conversation in
Ideas
Replies: 1 comment
-
@mattandayo Hi, thank you for the suggestion.
Instead of introducing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Thank you for providing the excellent gem 👍
I am considering adopting Alba for my Rails project.
I would like to change the serializer specification depending on the context.
I tried to achieve it using the functionality of
params
as shown below, but after reading the source code, I confirmed that the block that is passed to theresource
is not possible to receiveparams
.I can think of a way to achieve it without using the params by adding an interface like context to the object, but I don't think it's very elegant.
It would be great if I could specify the context as follows, but do you have any plans to implement it in future versions?
Beta Was this translation helpful? Give feedback.
All reactions