MorningPeak/app/views/comments/index.json.jbuilder
Arthur Poulet 7646e982d3 fix comment, implementation
- creator polymorphic instead of user
- implementation
2015-07-25 22:30:19 +02:00

5 lines
205 B
Ruby

json.array!(@comments) do |comment|
json.extract! comment, :id, :title, :comment, :commentable_id, :commentable_type, :creator_id, :creator_type, :role
json.url comment_url(comment, format: :json)
end