app/models/page.rb in refinerycms-pages-0.9.9.9 vs app/models/page.rb in refinerycms-pages-0.9.9.10

- old
+ new

@@ -38,10 +38,10 @@ # Shows all pages with :show_in_menu set to true, but it also # rejects any page that has not been translated to the current locale. # This works using a query against the translated content first and then # using all of the page_ids we further filter against this model's table. scope :in_menu, lambda { - where(:show_in_menu => true).joins(:translations).includes(:translations).where( + where(:show_in_menu => true).includes(:translations).where( :id => Page::Translation.where(:locale => Globalize.locale).map(&:page_id) ) } # when a dialog pops up to link to a page, how many pages per page should there be