Hide redirected pages in collection for parent ids.
This commit is contained in:
parent
65e41efc18
commit
c3ca3e23f9
3 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue