* Refactor jbuilder for articles * Refactor remaining jbuilder files * Fix specs * Remove content_truncated from response template JSON Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
4 lines
137 B
Ruby
4 lines
137 B
Ruby
json.array!(@articles) do |article|
|
|
json.extract!(article, :id, :title, :body_html)
|
|
json.url article_url(article, format: :json)
|
|
end
|