Fix pagination header on empty trends responses in REST API (#17986)
This commit is contained in:
parent
ebe01ea194
commit
465ee7792f
4 changed files with 16 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue