Let's say we have @posts = Post.published.per(10).page(params[:page])
somewhere in our controller. Later on we need to update all published posts (Post.published
).
How should one remove the pagination?
@posts.limit(false).offset(false)
seems to do the trick but I think there should be some other way, a more high-level way (something like @posts.without_pagination
).