diaspora/doc/UserPreference.html
2011-06-13 16:12:32 -07:00

205 lines
No EOL
5.2 KiB
HTML

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Class: UserPreference
&mdash; Documentation by YARD 0.7.1
</title>
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
<script type="text/javascript" charset="utf-8">
relpath = '';
if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
</head>
<body>
<script type="text/javascript" charset="utf-8">
if (window.top.frames.main) document.body.className = 'frames';
</script>
<div id="header">
<div id="menu">
<a href="_index.html">Index (U)</a> &raquo;
<span class="title">UserPreference</span>
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
</div>
<div id="search">
<a id="class_list_link" href="#">Class List</a>
<a id="method_list_link" href="#">Method List</a>
<a id="file_list_link" href="#">File List</a>
</div>
<div class="clear"></div>
</div>
<iframe id="search_frame"></iframe>
<div id="content"><h1>Class: UserPreference
</h1>
<dl class="box">
<dt class="r1">Inherits:</dt>
<dd class="r1">
<span class="inheritName">ActiveRecord::Base</span>
<ul class="fullTree">
<li>Object</li>
<li class="next">ActiveRecord::Base</li>
<li class="next">UserPreference</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
<dt class="r2 last">Defined in:</dt>
<dd class="r2 last">app/models/user_preference.rb</dd>
</dl>
<div class="clear"></div>
<h2>Constant Summary</h2>
<dl class="constants">
<dt id="VALID_EMAIL_TYPES-constant" class="">VALID_EMAIL_TYPES =
</dt>
<dd><pre class="code"><span class='lbrack token'>[</span><span class='string val'>&quot;mentioned&quot;</span><span class='comma token'>,</span>
<span class='string val'>&quot;comment_on_post&quot;</span><span class='comma token'>,</span>
<span class='string val'>&quot;private_message&quot;</span><span class='comma token'>,</span>
<span class='string val'>&quot;started_sharing&quot;</span><span class='comma token'>,</span>
<span class='string val'>&quot;also_commented&quot;</span><span class='comma token'>,</span>
<span class='string val'>&quot;liked&quot;</span><span class='rbrack token'>]</span>
</pre></dd>
</dl>
<h2>
Instance Method Summary
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
</h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
<a href="#must_be_valid_email_type-instance_method" title="#must_be_valid_email_type (instance method)">- (Object) <strong>must_be_valid_email_type</strong> </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
</ul>
<div id="instance_method_details" class="method_details_list">
<h2>Instance Method Details</h2>
<div class="method_details first">
<p class="signature first" id="must_be_valid_email_type-instance_method">
- (<tt>Object</tt>) <strong>must_be_valid_email_type</strong>
</p><table class="source_code">
<tr>
<td>
<pre class="lines">
14
15
16
17
18</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'app/models/user_preference.rb', line 14</span>
<span class='def def kw'>def</span> <span class='must_be_valid_email_type identifier id'>must_be_valid_email_type</span>
<span class='unless unless kw'>unless</span> <span class='VALID_EMAIL_TYPES constant id'>VALID_EMAIL_TYPES</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='email_type identifier id'>email_type</span><span class='rparen token'>)</span>
<span class='errors identifier id'>errors</span><span class='dot token'>.</span><span class='add identifier id'>add</span><span class='lparen token'>(</span><span class='symbol val'>:email_type</span><span class='comma token'>,</span> <span class='string val'>'supplied mail type is not a valid or known email type'</span><span class='rparen token'>)</span>
<span class='end end kw'>end</span>
<span class='end end kw'>end</span>
</pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Mon Jun 13 15:59:16 2011 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.7.1 (ruby-1.8.7).
</div>
</body>
</html>