diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 12:43:10 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 12:43:10 +0000 |
commit | 143a1d8ec301a38149d81687b52a3abca3186b95 (patch) | |
tree | 8e6598a2607022f295901379d2b465be2911fd66 | |
parent | 95d86daef3aa59e94fd3f8cc5ba9b7a50cb27db4 (diff) | |
download | redmine-143a1d8ec301a38149d81687b52a3abca3186b95.tar.gz redmine-143a1d8ec301a38149d81687b52a3abca3186b95.zip |
remove unneeded Relation#all from WikiPage#handle_redirects
git-svn-id: http://svn.redmine.org/redmine/trunk@12534 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/wiki_page.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index c681147ee..86b3fb15d 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -87,7 +87,7 @@ class WikiPage < ActiveRecord::Base r.title == r.redirects_to ? r.destroy : r.save end # Remove redirects for the new title - wiki.redirects.where(:title => title).all.each(&:destroy) + wiki.redirects.where(:title => title).each(&:destroy) # Create a redirect to the new title wiki.redirects << WikiRedirect.new(:title => @previous_title, :redirects_to => title) unless redirect_existing_links == "0" @previous_title = nil |