Fix pagination header on empty trends responses in REST API (#17986)

This commit is contained in:
Eugen Rochko
2022-04-07 18:06:15 +02:00
committed by GitHub
parent ebe01ea194
commit 465ee7792f
4 changed files with 16 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ class Trends::Query
@records
end
delegate :each, :empty?, :first, :last, to: :records
delegate :each, :empty?, :first, :last, :size, to: :records
def to_ary
records.dup