`order` scope is ignored when using `find_each`.
This commit is contained in:
parent
412fa78b1f
commit
f496302c2c
app/models
|
@ -84,7 +84,7 @@ class Emoji
|
|||
def self.load_custom
|
||||
result = []
|
||||
|
||||
CustomEmoji.includes(:upload).order(:name).find_each do |emoji|
|
||||
CustomEmoji.includes(:upload).order(:name).each do |emoji|
|
||||
result << Emoji.new.tap do |e|
|
||||
e.name = emoji.name
|
||||
e.url = emoji.upload&.url
|
||||
|
|
Loading…
Reference in New Issue