diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-03 20:22:46 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-03 20:22:46 +0000 |
commit | 9a7604981b78fa0c1265b99302420c696be1f13f (patch) | |
tree | bac2ff037b42110c1ce9d9647d197d62c7eaabc4 /app/controllers/wiki_controller.rb | |
parent | 5222650d952390d3435848397a46d8aa1dbda09e (diff) | |
download | redmine-9a7604981b78fa0c1265b99302420c696be1f13f.tar.gz redmine-9a7604981b78fa0c1265b99302420c696be1f13f.zip |
Rescue RecordNotSaved in #save_with_content.
git-svn-id: http://svn.redmine.org/redmine/trunk@13696 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/wiki_controller.rb')
-rw-r--r-- | app/controllers/wiki_controller.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 5ce55f2ce..a7ad964e7 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -185,11 +185,6 @@ class WikiController < ApplicationController } format.api { render_api_head :conflict } end - rescue ActiveRecord::RecordNotSaved - respond_to do |format| - format.html { render :action => 'edit' } - format.api { render_validation_errors(@content) } - end end # rename a page |