diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-03 21:05:10 +0300 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-03 21:05:10 +0300 |
| commit | 3011ac4150e355da9e5956cb223d19e18425e0eb (patch) | |
| tree | 1a857049b14ed6ff2a5f920d94101f9e2ccc7c63 /app/controllers/wikis_controller.rb | |
| parent | 9f4fde04f5b74199c9bd72621e03c544aaf6f2ef (diff) | |
| download | gitlab-ce-3011ac4150e355da9e5956cb223d19e18425e0eb.tar.gz | |
Refactoring and cleanup. Removed unused commit finders
Diffstat (limited to 'app/controllers/wikis_controller.rb')
| -rw-r--r-- | app/controllers/wikis_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/wikis_controller.rb b/app/controllers/wikis_controller.rb index 940b1e97340..be9ae4f37a4 100644 --- a/app/controllers/wikis_controller.rb +++ b/app/controllers/wikis_controller.rb @@ -49,9 +49,9 @@ class WikisController < ProjectResourceController end def history - unless @wiki = @gollum_wiki.find_page(params[:id]) - redirect_to project_wiki_path(@project, :home), notice: "Page not found" - end + @wiki = @gollum_wiki.find_page(params[:id]) + + redirect_to(project_wiki_path(@project, :home), notice: "Page not found") unless @wiki end def destroy |
