diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-10 04:45:46 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-10 04:45:46 +0000 |
commit | 5d535f899644a504401022c0c25dfc88c595deb3 (patch) | |
tree | 9f19868712360a2785594be22353a9b69df1af77 /app/views | |
parent | c1c1b548d071e98dd2ecb92f996d4a87cc02d36b (diff) | |
download | redmine-5d535f899644a504401022c0c25dfc88c595deb3.tar.gz redmine-5d535f899644a504401022c0c25dfc88c595deb3.zip |
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
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/wiki/edit.html.erb | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ <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 %> |