v3.2.0: Rails controller integration #373
okuramasafumi
started this conversation in
Feedback
Replies: 1 comment 3 replies
-
@okuramasafumi I get Looking at the Lines 9 to 17 in 4072c3b curious why you opt out supporting these helpers for |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, here's a new version of Alba, v3.2.0. There are two additions in this release.
Now we have a Rails "controller" integration!
serialize
andrender_serialized_json
methods are available in Rails controllers, making it easier to use Alba with Rails. It's inspired by Layered Design for Ruby on Rails Applications book mentioning Alba and its usage. Thank you!Another feature is
transform_keys!
that enables to change key transformation type after defining a resource/serializer class. It helps when there are so many classes that are almost equivalent. Note that this feature is experimental.The documentation for the new Rails controller integration is here and the documentation for
transform_keys!
can be found here.Enjoy!This discussion was created from the release v3.2.0: Rails controller integration.
Beta Was this translation helpful? Give feedback.
All reactions