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) ⇒ 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)
  redirect_to project_tree_path(project, ref), notice: missing_path_on_ref(path, ref)
end