module ActiveModelSerializers::Callbacks::ClassMethods
def around_render(*filters, &blk)
end
# end
# adapter.as_json
# def render(args)
# serializable_hash, we aren't using the usual format, which would be:
# Note: So that we can re-use the instrumenter for as_json, to_json, and
end
end
adapter.as_json
run_callbacks :render do
def as_json
end
end
end
block.call(args)
notify_render do
tag_logger do
around_render do |args, block|
include ActiveModelSerializers::Callbacks
class ActiveModelSerializers::SerializableResource
whether it is as_json, to_json, or serializable_hash
Defines a callback that will get called around the render method,
def around_render(*filters, &blk) set_callback(:render, :around, *filters, &blk) end