Browse Source

Cache result of SQL (#14534)

master
niwatori24 4 years ago
committed by GitHub
parent
commit
8b61bb1c3e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/form/custom_emoji_batch.rb

+ 1
- 1
app/models/form/custom_emoji_batch.rb View File

@ -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!

Loading…
Cancel
Save