Skip to content
Snippets Groups Projects
Unverified Commit 8b61bb1c authored by niwatori24's avatar niwatori24 Committed by GitHub
Browse files

Cache result of SQL (#14534)

parent bd3420b1
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ class Form::CustomEmojiBatch
private
def custom_emojis
CustomEmoji.where(id: custom_emoji_ids)
@custom_emojis ||= CustomEmoji.where(id: custom_emoji_ids)
end
def update!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment