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:
parent
a7290147c7
commit
a8d0df11d3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user