Cache result of SQL (#14534)
This commit is contained in:
parent
bd3420b139
commit
8b61bb1c3e
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class Form::CustomEmojiBatch
|
||||||
private
|
private
|
||||||
|
|
||||||
def custom_emojis
|
def custom_emojis
|
||||||
CustomEmoji.where(id: custom_emoji_ids)
|
@custom_emojis ||= CustomEmoji.where(id: custom_emoji_ids)
|
||||||
end
|
end
|
||||||
|
|
||||||
def update!
|
def update!
|
||||||
|
|
Loading…
Reference in a new issue