7646e982d3
- creator polymorphic instead of user - implementation
5 lines
205 B
Ruby
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
|