Hide redirected pages in collection for parent ids.

This commit is contained in:
Benjamin Meichsner 2009-09-28 17:22:24 +02:00
parent 65e41efc18
commit c3ca3e23f9
3 changed files with 4 additions and 2 deletions

View file

@ -96,7 +96,7 @@ class PagesController < ApplicationController
end
def all
@pages = Page.all :order => 'updated_at DESC', :conditions => {:redirect => nil}
@pages = Page.non_redirected.all :order => 'updated_at DESC'
end
def version