gitlabhq/doc/code/classes/Issue.html
2012-12-30 14:43:00 +02:00

174 lines
No EOL
4.1 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Issue</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../css/github.css" type="text/css" media="screen" />
<script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="banner">
<h1>
<span class="type">Class</span>
Issue
<span class="parent">&lt;
ActiveRecord::Base
</span>
</h1>
<ul class="files">
<li><a href="../files/app/models/issue_rb.html">app/models/issue.rb</a></li>
</ul>
</div>
<div id="bodyContent">
<div id="content">
<div class="description">
<h2 id="label-Schema+Information">Schema Information</h2>
<p>Table name: issues</p>
<pre>id :integer not null, primary key
title :string(255)
assignee_id :integer
author_id :integer
project_id :integer
created_at :datetime not null
updated_at :datetime not null
closed :boolean default(FALSE), not null
position :integer default(0)
branch_name :string(255)
description :text
milestone_id :integer</pre>
</div>
<!-- Method ref -->
<div class="sectiontitle">Methods</div>
<dl class="methods">
<dt>O</dt>
<dd>
<ul>
<li>
<a href="#method-c-open_for">open_for</a>
</li>
</ul>
</dd>
</dl>
<!-- Includes -->
<div class="sectiontitle">Included Modules</div>
<ul>
<li>
<a href="IssueCommonality.html">
IssueCommonality
</a>
</li>
<li>
<a href="Votes.html">
Votes
</a>
</li>
</ul>
<!-- Methods -->
<div class="sectiontitle">Class Public methods</div>
<div class="method">
<div class="title method-title" id="method-c-open_for">
<b>open_for</b>(user)
<a href="../classes/Issue.html#method-c-open_for" name="method-c-open_for" class="permalink">Link</a>
</div>
<div class="description">
</div>
<div class="sourcecode">
<p class="source-link">
Source:
<a href="javascript:toggleSource('method-c-open_for_source')" id="l_method-c-open_for_source">show</a>
</p>
<div id="method-c-open_for_source" class="dyn-source">
<pre><span class="ruby-comment"># File app/models/issue.rb, line 30</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">self</span>.<span class="ruby-identifier">open_for</span>(<span class="ruby-identifier">user</span>)
<span class="ruby-identifier">opened</span>.<span class="ruby-identifier">assigned</span>(<span class="ruby-identifier">user</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
</div>
</div>
</body>
</html>