Skip to content

Commit

Permalink
fix sorting of all items
Browse files Browse the repository at this point in the history
  • Loading branch information
liz4chernyshova committed Apr 27, 2023
1 parent 922fcf1 commit 8cfa85f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/web/reviews_controller.rb
Expand Up @@ -2,6 +2,8 @@

class Web::ReviewsController < Web::ApplicationController
def index
@reviews = Review.published.with_locale.page(params[:page]).order(created_at: :desc)
@search = Review.published.with_locale.order(created_at: :desc)

@reviews = @search.page(params[:page])
end
end

0 comments on commit 8cfa85f

Please sign in to comment.