Skip to content

Commit

Permalink
Fixes a bug where the redirects would not be displayed in the right o…
Browse files Browse the repository at this point in the history
…rder
  • Loading branch information
Frédéric de Villamil committed Nov 8, 2013
1 parent 2d5b959 commit b3bdd3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/redirects_controller.rb
Expand Up @@ -15,7 +15,7 @@ def destroy

private
def new_or_edit
@redirects = Redirect.where("origin is null").order('created_at desc').page(params[:page]).per(this_blog.admin_display_elements)
@redirects = Redirect.where("origin is null").order('id desc').page(params[:page]).per(this_blog.admin_display_elements)

@redirect = case params[:id]
when nil
Expand Down

0 comments on commit b3bdd3a

Please sign in to comment.