Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Commit

Permalink
Tags views shows posts ascending but should be descending
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayBarot committed Mar 13, 2017
1 parent dddac06 commit c5c1f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/tags_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ def set_tag
end

def tagged_posts
@_tagged_posts ||= Post.tagged_with(@tag.name).published.includes(:user).paginate(page: params[:page])
@_tagged_posts ||= Post.tagged_with(@tag.name).published.includes(:user).paginate(page: params[:page]).order(created_at: :desc)
end
end

0 comments on commit c5c1f25

Please sign in to comment.