Use serializer to render diff lines
Move code that renders blob diff lines of app/controllers/projects/blob_controller.rb
to a serializer.
The following discussions from !17011 (merged) should be addressed:
-
@smcgivern started a discussion: I think we should use a serialiser for this, but we can create a TD issue for that. Please do so and ping me there.
-
@smcgivern started a discussion: Maybe a TD issue to add a JSON schema for these? https://gitlab.com/gitlab-org/gitlab-ce/blob/master/spec/support/api/schema_matcher.rb
Edited by Felipe Artur