diff options
author | Sebastian Klier <sebastian@sebastianklier.com> | 2016-04-05 06:36:43 +0300 |
---|---|---|
committer | Sebastian Klier <sebastian@sebastianklier.com> | 2016-04-20 03:25:41 +0300 |
commit | 559ef41d32db10b79fe7b6cfa42b8cd019ca8415 (patch) | |
tree | 856b124d9d19e643b2a88c723151f95ce9a1237a /app/controllers/projects/wikis_controller.rb | |
parent | dac548b32007b7802cf54738aa5fe50f9bf78162 (diff) |
improve check if wiki page is persisted
Diffstat (limited to 'app/controllers/projects/wikis_controller.rb')
-rw-r--r-- | app/controllers/projects/wikis_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/wikis_controller.rb b/app/controllers/projects/wikis_controller.rb index 804a3a48ac2..c02bc28acef 100644 --- a/app/controllers/projects/wikis_controller.rb +++ b/app/controllers/projects/wikis_controller.rb @@ -57,7 +57,7 @@ class Projects::WikisController < Projects::ApplicationController def create @page = WikiPages::CreateService.new(@project, current_user, wiki_params).execute - if @page + if @page.persisted? redirect_to( namespace_project_wiki_path(@project.namespace, @project, @page), notice: 'Wiki was successfully updated.' |