Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…stevenheidel)
  • Loading branch information...
commit 0962e0b7f5ea70ee4bff7e3ebab89366d7a21845 1 parent 207d17a
Philip Arndt parndt authored
2  vendor/refinerycms/core/lib/refinery/application_controller.rb
View
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.