Module: RedirectsForMissingPathOnTree

Included in:
Projects::BlameController, Projects::BlobController, Projects::TreeController
Defined in:
app/controllers/concerns/redirects_for_missing_path_on_tree.rb

Instance Method Summary collapse

Instance Method Details

#redirect_to_tree_root_for_missing_path(project, ref, path, ref_type: nil) ⇒ Object



4
5
6
# File 'app/controllers/concerns/redirects_for_missing_path_on_tree.rb', line 4

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