Merge remote-tracking branch 'parent/main' into kbtopic-remove-quote

This commit is contained in:
KMY 2025-05-27 10:51:58 +09:00
commit 7c65b6f9df
464 changed files with 8217 additions and 8135 deletions

View file

@ -1,9 +1,15 @@
# frozen_string_literal: true
class REST::RuleSerializer < ActiveModel::Serializer
attributes :id, :text, :hint
attributes :id, :text, :hint, :translations
def id
object.id.to_s
end
def translations
object.translations.to_h do |translation|
[translation.language, { text: translation.text, hint: translation.hint }]
end
end
end