From 5d535f899644a504401022c0c25dfc88c595deb3 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 10 Jan 2014 04:45:46 +0000 Subject: [PATCH] cleanup syntax of Relation#all at app/views/wiki/edit.html.erb git-svn-id: http://svn.redmine.org/redmine/trunk@12587 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/wiki/edit.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erb index 6c1c7c53a..3a5a4709f 100644 --- a/app/views/wiki/edit.html.erb +++ b/app/views/wiki/edit.html.erb @@ -22,7 +22,8 @@ <%= fp.select :parent_id, content_tag('option', '', :value => '') + - wiki_page_options_for_select(@wiki.pages.all(:include => :parent) - + wiki_page_options_for_select( + @wiki.pages.includes(:parent).all - @page.self_and_descendants, @page.parent) %>

<% end %> -- 2.39.5