Revert "Replace House with Lexical"

This commit is contained in:
Jorge Manrubia
2025-05-29 14:22:27 +02:00
committed by GitHub
parent ba54ed6104
commit 08d8b2e5ff
50 changed files with 576 additions and 916 deletions
+1 -5
View File
@@ -5,7 +5,7 @@ class Comment < ApplicationRecord
belongs_to :creator, class_name: "User", default: -> { Current.user }
has_many :reactions, dependent: :delete_all
has_rich_text :body
has_markdown :body
searchable_by :body_plain_text, using: :comments_search_index, as: :body
scope :chronologically, -> { order created_at: :asc, id: :desc }
@@ -19,10 +19,6 @@ class Comment < ApplicationRecord
end
private
def body_plain_text
body.to_plain_text
end
def watch_card_by_creator
card.watch_by creator
end