I would simplify these 2 methods to something similar
```ruby
def get_objects(objects)
  size = current_user.page_size
  offset = params[:offset].try(:to_i) || 0
  objects.reverse! if params[:order].try(:downcase) == "desc"
  return objects[offset...offset+size], offset+size
end
```
After writing this suggestion, I've noticed a comment that this is used only in tests. If that is true than it should be part of the specs, it should not be here.