docbrown/app/views/articles/show.json.jbuilder
Michael Kohl 02d23a0673
Refactor jbuilder (#7411)
* 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>
2020-04-24 12:49:12 +02:00

1 line
75 B
Ruby

json.extract!(@article, :id, :title, :body_html, :created_at, :updated_at)