Permalink
Browse files

Now that we've sped it up, restore the conditions on the query. (ht: …

…stevenheidel)
  • Loading branch information...
1 parent 207d17a commit 0962e0b7f5ea70ee4bff7e3ebab89366d7a21845 @parndt parndt committed Sep 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 vendor/refinerycms/core/lib/refinery/application_controller.rb
@@ -79,7 +79,7 @@ def login?
# get all the pages to be displayed in the site menu.
def find_pages_for_menu
- @menu_pages = Page.order('lft ASC').includes(:parts)
+ @menu_pages = Page.where(:show_in_menu => true, :draft => false).order('lft ASC').includes(:parts)
end
# use a different model for the meta information.

0 comments on commit 0962e0b

Please sign in to comment.