mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-17 10:15:57 +08:00
修改:自定义事件
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user