From 1ea0dd0ffc37232d27f4fa1350af6ebb3b5439f2 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 25 Oct 2012 11:59:41 +0300 Subject: App docs --- doc/app/RepositoriesController.html | 593 ++++++++++++++++++++++++++++++++++++ 1 file changed, 593 insertions(+) create mode 100644 doc/app/RepositoriesController.html (limited to 'doc/app/RepositoriesController.html') diff --git a/doc/app/RepositoriesController.html b/doc/app/RepositoriesController.html new file mode 100644 index 00000000000..3a22f71e49a --- /dev/null +++ b/doc/app/RepositoriesController.html @@ -0,0 +1,593 @@ + + + + + + +class RepositoriesController - Rails Application Documentation + + + + + + + + + + + + + + + + +
+

class RepositoriesController

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ archive() + click to toggle source +
+ + +
+ + + + + +
+
# File app/controllers/repositories_controller.rb, line 19
+def archive
+  unless can?(current_user, :download_code, @project)
+    render_404 and return 
+  end
+
+
+  file_path = @project.archive_repo(params[:ref])
+
+  if file_path
+    # Send file to user
+    send_file file_path
+  else
+    render_404
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ branches() + click to toggle source +
+ + +
+ + + + + +
+
# File app/controllers/repositories_controller.rb, line 11
+def branches
+  @branches = @project.branches
+end
+
+ +
+ + + + +
+ + +
+ +
+ show() + click to toggle source +
+ + +
+ + + + + +
+
# File app/controllers/repositories_controller.rb, line 7
+def show
+  @activities = @project.commits_with_refs(20)
+end
+
+ +
+ + + + +
+ + +
+ +
+ tags() + click to toggle source +
+ + +
+ + + + + +
+
# File app/controllers/repositories_controller.rb, line 15
+def tags
+  @tags = @project.tags
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + -- cgit v1.2.1