app/api/locomotive/api/helpers/pagination_helper.rb in locomotivecms-3.3.0.rc3 vs app/api/locomotive/api/helpers/pagination_helper.rb in locomotivecms-3.3.0

- old
+ new

@@ -2,10 +2,10 @@ module API module Helpers module PaginationHelper def add_pagination_header(collection) - header 'X-Total-Pages', collection.num_pages.to_s + header 'X-Total-Pages', collection.total_pages.to_s header 'X-Per-Page', collection.limit_value.to_s header 'X-Total-Entries', collection.total_count.to_s end end