|
|
|
@@ -451,7 +451,7 @@ class Project < ApplicationRecord |
|
|
|
Jbuilder.new do |project| |
|
|
|
project.id self.id |
|
|
|
project.identifier self.identifier |
|
|
|
project.name self.name |
|
|
|
project.name self.name.to_s.each_char.select { |c| c.bytes.first < 240 }.join('') |
|
|
|
project.description Nokogiri::HTML(self.description).text |
|
|
|
project.visits self.visits |
|
|
|
project.praises_count self.praises_count.to_i |
|
|
|
|