修改:自定义事件

This commit is contained in:
2023-04-06 19:19:54 +08:00
parent 769c8a0194
commit cd489d3b97
10 changed files with 208 additions and 279 deletions

View File

@@ -272,5 +272,9 @@ class Journal < ApplicationRecord
send_details
end
def to_builder
Jbuilder.new do |journal|
journal.(self, :id, :notes, :comments_count)
end
end
end