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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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