From 38737079b6c1096c2517e249198b8bc0bedf4156 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 9 Feb 2013 15:26:47 +0200 Subject: ignore docs by git --- doc/code/classes/RefsController.html | 313 ----------------------------------- 1 file changed, 313 deletions(-) delete mode 100644 doc/code/classes/RefsController.html (limited to 'doc/code/classes/RefsController.html') diff --git a/doc/code/classes/RefsController.html b/doc/code/classes/RefsController.html deleted file mode 100644 index 971b8fcb9a3..00000000000 --- a/doc/code/classes/RefsController.html +++ /dev/null @@ -1,313 +0,0 @@ - - - - - RefsController - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - - -
Methods
-
- -
D
-
- -
- -
L
-
- -
- -
R
-
-
    - - -
  • - ref -
  • - -
-
- -
S
-
- -
- -
- - - - - - - - - - - - - - - - - - - - -
Instance Public methods
- -
-
- - logs_tree() - - -
- - -
- -
- - - - - - -
- - -
-
# File app/controllers/refs_controller.rb, line 30
-def logs_tree
-  contents = @tree.contents
-  @logs = contents.map do |content|
-    file = params[:path] ? File.join(params[:path], content.name) : content.name
-    last_commit = @project.commits(@commit.id, file, 1).last
-    last_commit = CommitDecorator.decorate(last_commit)
-    {
-      file_name: content.name,
-      commit: last_commit
-    }
-  end
-end
-
-
- -
- -
-
- - switch() - - -
- - -
- -
- - - - - - -
- - -
-
# File app/controllers/refs_controller.rb, line 11
-def switch
-  respond_to do |format|
-    format.html do
-      new_path = if params[:destination] == "tree"
-                   project_tree_path(@project, @ref)
-                 else
-                   project_commits_path(@project, @ref)
-                 end
-
-      redirect_to new_path
-    end
-    format.js do
-      @ref = params[:ref]
-      define_tree_vars
-      render "tree"
-    end
-  end
-end
-
-
- -
- -
Instance Protected methods
- -
-
- - define_tree_vars() - - -
- - -
- -
- - - - - - -
- - -
-
# File app/controllers/refs_controller.rb, line 45
-def define_tree_vars
-  params[:path] = nil if params[:path].blank?
-
-  @repo = project.repo
-  @commit = project.commit(@ref)
-  @commit = CommitDecorator.decorate(@commit)
-  @tree = Tree.new(@commit.tree, project, @ref, params[:path])
-  @tree = TreeDecorator.new(@tree)
-  @hex_path = Digest::SHA1.hexdigest(params[:path] || "")
-
-  if params[:path]
-    @logs_path = logs_file_project_ref_path(@project, @ref, params[:path])
-  else
-    @logs_path = logs_tree_project_ref_path(@project, @ref)
-  end
-rescue
-  return render_404
-end
-
-
- -
- -
-
- - ref() - - -
- - -
- -
- - - - - - -
- - -
-
# File app/controllers/refs_controller.rb, line 64
-def ref
-  @ref = params[:id] || params[:ref]
-end
-
-
- -
-
- -
- - \ No newline at end of file -- cgit v1.2.1