Skip to content
Snippets Groups Projects

Update redirects and commit lookup code for controllers

All threads resolved!
11 files
+ 467
126
Compare changes
  • Side-by-side
  • Inline
Files
11
# frozen_string_literal: true
module RedirectsForMissingPathOnTree
def redirect_to_tree_root_for_missing_path(project, ref, path)
redirect_to project_tree_path(project, ref), notice: missing_path_on_ref(path, ref)
def redirect_to_tree_root_for_missing_path(project, ref, path, ref_type: nil)
redirect_to project_tree_path(project, ref, ref_type: ref_type), notice: missing_path_on_ref(path, ref)
end
private
Loading