Commit 3b4734ce authored by Kia Mei Somabes's avatar Kia Mei Somabes

Change hash syntax for redirect commits to root if no ref is provided

parent 11d56a15
...@@ -64,7 +64,7 @@ class ApplicationController < ActionController::Base ...@@ -64,7 +64,7 @@ class ApplicationController < ActionController::Base
end end
def redirect_commits_root def redirect_commits_root
redirect_to :controller => 'commits', :action => 'show', :id => @repository.root_ref redirect_to controller: 'commits', action: 'show', id: @repository.root_ref
end end
def redirect_back_or_default(default: root_path, options: {}) def redirect_back_or_default(default: root_path, options: {})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment