1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-03-21 12:29:03 +01:00

projects/index/json.jbuilder : sanitize project description

This commit is contained in:
Nicolas Florentin 2022-07-27 15:59:42 +02:00
parent a7290147c7
commit a8d0df11d3

View File

@ -1,7 +1,8 @@
# frozen_string_literal: true
json.projects @projects do |project|
json.extract! project, :id, :name, :description, :licence_id, :slug, :state
json.extract! project, :id, :name, :licence_id, :slug, :state
json.description sanitize(project.description)
json.author_id project.author.user_id
json.project_image project.project_image.attachment.medium.url if project.project_image