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
This commit is contained in:
Toshi MARUYAMA 2014-01-10 04:45:46 +00:00
parent c1c1b548d0
commit 5d535f8996
1 changed files with 2 additions and 1 deletions

View 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 %>