Open
Description
Hi there,
One nice feature of ActiveModelSerializer-based rendering is the implicit serialization of instances of ActiveRecord::Base. See: https://github.com/rails-api/active_model_serializers/blob/v0.10.6/docs/general/getting_started.md#rails-integration
Would there be any appetite or interest for this behavior with the inertia
renderer?
For example, say we have this render at the end of a controller action:
class SomeController < ApplicationController
def show
@post = Post.find(params[:id])
render(inertia: 'SomeComponent',
props: { post: @post } # This would implicitly serialize using a corresponding serializer?
)
end
end
Metadata
Metadata
Assignees
Labels
No labels