]> source.dussan.org Git - redmine.git/commitdiff
cleanup syntax of Relation#all at app/views/wiki/rename.html.erb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jan 2014 07:46:23 +0000 (07:46 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jan 2014 07:46:23 +0000 (07:46 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12591 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/wiki/rename.html.erb

index 86385a94b038149cff096f481fe60f372db48690..c1a8f33ac198ac1ae4270d3b52ec8f89bf52679e 100644 (file)
@@ -13,7 +13,7 @@
 <p><%= f.select :parent_id,
                 content_tag('option', '', :value => '') + 
                   wiki_page_options_for_select(
-                    @wiki.pages.all(:include => :parent) - @page.self_and_descendants,
+                    @wiki.pages.includes(:parent).all - @page.self_and_descendants,
                     @page.parent),
                 :label => :field_parent_title %></p>
 </div>