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

app/views/wiki/edit.html.erb

index 6c1c7c53abda36fbdc67af30bdcd2889cb00d315..3a5a4709feb66200519073963ec888e05a96e07e 100644 (file)
@@ -22,7 +22,8 @@
       <label><%= l(:field_parent_title) %></label>
       <%= 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) %>
     </p>
   <% end %>