muck-comments 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/MIT-LICENSE +1 -1
- data/Rakefile +27 -11
- data/VERSION +1 -1
- data/locales/ar.yml +2 -0
- data/locales/bg.yml +3 -1
- data/locales/ca.yml +2 -0
- data/locales/cs.yml +2 -0
- data/locales/da.yml +2 -0
- data/locales/de.yml +2 -0
- data/locales/el.yml +2 -0
- data/locales/en.yml +3 -1
- data/locales/es.yml +2 -0
- data/locales/et.yml +12 -0
- data/locales/fa.yml +12 -0
- data/locales/fi.yml +12 -0
- data/locales/fr.yml +2 -0
- data/locales/gl.yml +12 -0
- data/locales/hi.yml +12 -0
- data/locales/hr.yml +12 -0
- data/locales/hu.yml +12 -0
- data/locales/id.yml +12 -0
- data/locales/it.yml +3 -1
- data/locales/iw.yml +2 -0
- data/locales/ja.yml +3 -1
- data/locales/ko.yml +2 -0
- data/locales/lt.yml +2 -0
- data/locales/lv.yml +2 -0
- data/locales/mt.yml +12 -0
- data/locales/nl.yml +2 -0
- data/locales/no.yml +2 -0
- data/locales/pl.yml +2 -0
- data/locales/pt-PT.yml +12 -0
- data/locales/ro.yml +2 -0
- data/locales/ru.yml +2 -0
- data/locales/sk.yml +2 -0
- data/locales/sl.yml +2 -0
- data/locales/sq.yml +12 -0
- data/locales/sr.yml +2 -0
- data/locales/sv.yml +2 -0
- data/locales/th.yml +12 -0
- data/locales/tl.yml +2 -0
- data/locales/tr.yml +12 -0
- data/locales/uk.yml +2 -0
- data/locales/vi.yml +2 -0
- data/locales/zh-CN.yml +2 -0
- data/locales/zh-TW.yml +2 -0
- data/locales/zh.yml +2 -0
- data/muck-comments.gemspec +17 -78
- metadata +16 -28
- data/pkg/muck-comments-0.1.2.gem +0 -0
- data/pkg/muck-comments-0.1.3.gem +0 -0
- data/rdoc/classes/ActionController.html +0 -107
- data/rdoc/classes/ActionController/Routing.html +0 -107
- data/rdoc/classes/ActionController/Routing/RouteSet.html +0 -148
- data/rdoc/classes/ActiveRecord.html +0 -105
- data/rdoc/classes/ActiveRecord/Acts/MuckComment/ClassMethods.html +0 -160
- data/rdoc/classes/ActiveRecord/Acts/MuckComment/InstanceMethods.html +0 -178
- data/rdoc/classes/ActiveRecord/Acts/MuckComment/SingletonMethods.html +0 -212
- data/rdoc/classes/Acts/CommentableWithThreading/ClassMethods.html +0 -149
- data/rdoc/classes/Acts/CommentableWithThreading/InstanceMethods.html +0 -234
- data/rdoc/classes/Acts/CommentableWithThreading/SingletonMethods.html +0 -189
- data/rdoc/classes/MuckComments.html +0 -111
- data/rdoc/classes/MuckComments/Tasks.html +0 -146
- data/rdoc/created.rid +0 -1
- data/rdoc/files/README_rdoc.html +0 -182
- data/rdoc/files/lib/active_record/acts/muck_comment_rb.html +0 -101
- data/rdoc/files/lib/acts_as_commentable_with_threading_rb.html +0 -107
- data/rdoc/files/lib/muck_comments/initialize_routes_rb.html +0 -101
- data/rdoc/files/lib/muck_comments/tasks_rb.html +0 -110
- data/rdoc/files/lib/muck_comments_rb.html +0 -115
- data/rdoc/fr_class_index.html +0 -38
- data/rdoc/fr_file_index.html +0 -32
- data/rdoc/fr_method_index.html +0 -41
- data/rdoc/index.html +0 -24
- data/rdoc/rdoc-style.css +0 -208
@@ -1,234 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: Acts::CommentableWithThreading::InstanceMethods</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">Acts::CommentableWithThreading::InstanceMethods</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/acts_as_commentable_with_threading_rb.html">
|
59
|
-
lib/acts_as_commentable_with_threading.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
<div id="description">
|
76
|
-
<p>
|
77
|
-
This module contains instance methods
|
78
|
-
</p>
|
79
|
-
|
80
|
-
</div>
|
81
|
-
|
82
|
-
|
83
|
-
</div>
|
84
|
-
|
85
|
-
<div id="method-list">
|
86
|
-
<h3 class="section-bar">Methods</h3>
|
87
|
-
|
88
|
-
<div class="name-list">
|
89
|
-
<a href="#M000007">add_comment</a>
|
90
|
-
<a href="#M000008">can_comment?</a>
|
91
|
-
<a href="#M000006">comments_ordered_by_submitted</a>
|
92
|
-
<a href="#M000005">root_comments</a>
|
93
|
-
</div>
|
94
|
-
</div>
|
95
|
-
|
96
|
-
</div>
|
97
|
-
|
98
|
-
|
99
|
-
<!-- if includes -->
|
100
|
-
|
101
|
-
<div id="section">
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
<!-- if method_list -->
|
111
|
-
<div id="methods">
|
112
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
113
|
-
|
114
|
-
<div id="method-M000007" class="method-detail">
|
115
|
-
<a name="M000007"></a>
|
116
|
-
|
117
|
-
<div class="method-heading">
|
118
|
-
<a href="#M000007" class="method-signature">
|
119
|
-
<span class="method-name">add_comment</span><span class="method-args">(comment)</span>
|
120
|
-
</a>
|
121
|
-
</div>
|
122
|
-
|
123
|
-
<div class="method-description">
|
124
|
-
<p>
|
125
|
-
Helper method that defaults the submitted time.
|
126
|
-
</p>
|
127
|
-
<p><a class="source-toggle" href="#"
|
128
|
-
onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
|
129
|
-
<div class="method-source-code" id="M000007-source">
|
130
|
-
<pre>
|
131
|
-
<span class="ruby-comment cmt"># File lib/acts_as_commentable_with_threading.rb, line 60</span>
|
132
|
-
60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_comment</span>(<span class="ruby-identifier">comment</span>)
|
133
|
-
61: <span class="ruby-identifier">comments</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">comment</span>
|
134
|
-
62: <span class="ruby-keyword kw">end</span>
|
135
|
-
</pre>
|
136
|
-
</div>
|
137
|
-
</div>
|
138
|
-
</div>
|
139
|
-
|
140
|
-
<div id="method-M000008" class="method-detail">
|
141
|
-
<a name="M000008"></a>
|
142
|
-
|
143
|
-
<div class="method-heading">
|
144
|
-
<a href="#M000008" class="method-signature">
|
145
|
-
<span class="method-name">can_comment?</span><span class="method-args">(user)</span>
|
146
|
-
</a>
|
147
|
-
</div>
|
148
|
-
|
149
|
-
<div class="method-description">
|
150
|
-
<p>
|
151
|
-
Determines whether or not the give user can comment on the parent object
|
152
|
-
</p>
|
153
|
-
<p><a class="source-toggle" href="#"
|
154
|
-
onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
|
155
|
-
<div class="method-source-code" id="M000008-source">
|
156
|
-
<pre>
|
157
|
-
<span class="ruby-comment cmt"># File lib/acts_as_commentable_with_threading.rb, line 65</span>
|
158
|
-
65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">can_comment?</span>(<span class="ruby-identifier">user</span>)
|
159
|
-
66: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">user</span>.<span class="ruby-identifier">blank?</span>
|
160
|
-
67: <span class="ruby-keyword kw">false</span>
|
161
|
-
68: <span class="ruby-keyword kw">end</span>
|
162
|
-
</pre>
|
163
|
-
</div>
|
164
|
-
</div>
|
165
|
-
</div>
|
166
|
-
|
167
|
-
<div id="method-M000006" class="method-detail">
|
168
|
-
<a name="M000006"></a>
|
169
|
-
|
170
|
-
<div class="method-heading">
|
171
|
-
<a href="#M000006" class="method-signature">
|
172
|
-
<span class="method-name">comments_ordered_by_submitted</span><span class="method-args">()</span>
|
173
|
-
</a>
|
174
|
-
</div>
|
175
|
-
|
176
|
-
<div class="method-description">
|
177
|
-
<p>
|
178
|
-
Helper method to sort comments by date
|
179
|
-
</p>
|
180
|
-
<p><a class="source-toggle" href="#"
|
181
|
-
onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
|
182
|
-
<div class="method-source-code" id="M000006-source">
|
183
|
-
<pre>
|
184
|
-
<span class="ruby-comment cmt"># File lib/acts_as_commentable_with_threading.rb, line 52</span>
|
185
|
-
52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">comments_ordered_by_submitted</span>
|
186
|
-
53: <span class="ruby-constant">Comment</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">:all</span>,
|
187
|
-
54: <span class="ruby-identifier">:conditions</span> =<span class="ruby-operator">></span> [<span class="ruby-value str">"commentable_id = ? and commentable_type = ?"</span>, <span class="ruby-identifier">id</span>, <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>],
|
188
|
-
55: <span class="ruby-identifier">:order</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"created_at DESC"</span>
|
189
|
-
56: )
|
190
|
-
57: <span class="ruby-keyword kw">end</span>
|
191
|
-
</pre>
|
192
|
-
</div>
|
193
|
-
</div>
|
194
|
-
</div>
|
195
|
-
|
196
|
-
<div id="method-M000005" class="method-detail">
|
197
|
-
<a name="M000005"></a>
|
198
|
-
|
199
|
-
<div class="method-heading">
|
200
|
-
<a href="#M000005" class="method-signature">
|
201
|
-
<span class="method-name">root_comments</span><span class="method-args">()</span>
|
202
|
-
</a>
|
203
|
-
</div>
|
204
|
-
|
205
|
-
<div class="method-description">
|
206
|
-
<p>
|
207
|
-
Helper method to display only root threads, no children/replies
|
208
|
-
</p>
|
209
|
-
<p><a class="source-toggle" href="#"
|
210
|
-
onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
|
211
|
-
<div class="method-source-code" id="M000005-source">
|
212
|
-
<pre>
|
213
|
-
<span class="ruby-comment cmt"># File lib/acts_as_commentable_with_threading.rb, line 47</span>
|
214
|
-
47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">root_comments</span>
|
215
|
-
48: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">comments</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">:all</span>, <span class="ruby-identifier">:conditions</span> =<span class="ruby-operator">></span> {<span class="ruby-identifier">:parent_id</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">nil</span>})
|
216
|
-
49: <span class="ruby-keyword kw">end</span>
|
217
|
-
</pre>
|
218
|
-
</div>
|
219
|
-
</div>
|
220
|
-
</div>
|
221
|
-
|
222
|
-
|
223
|
-
</div>
|
224
|
-
|
225
|
-
|
226
|
-
</div>
|
227
|
-
|
228
|
-
|
229
|
-
<div id="validator-badges">
|
230
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
231
|
-
</div>
|
232
|
-
|
233
|
-
</body>
|
234
|
-
</html>
|
@@ -1,189 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: Acts::CommentableWithThreading::SingletonMethods</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">Acts::CommentableWithThreading::SingletonMethods</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/acts_as_commentable_with_threading_rb.html">
|
59
|
-
lib/acts_as_commentable_with_threading.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
<div id="description">
|
76
|
-
<p>
|
77
|
-
This module contains class methods
|
78
|
-
</p>
|
79
|
-
|
80
|
-
</div>
|
81
|
-
|
82
|
-
|
83
|
-
</div>
|
84
|
-
|
85
|
-
<div id="method-list">
|
86
|
-
<h3 class="section-bar">Methods</h3>
|
87
|
-
|
88
|
-
<div class="name-list">
|
89
|
-
<a href="#M000003">find_comments_by_user</a>
|
90
|
-
<a href="#M000002">find_comments_for</a>
|
91
|
-
</div>
|
92
|
-
</div>
|
93
|
-
|
94
|
-
</div>
|
95
|
-
|
96
|
-
|
97
|
-
<!-- if includes -->
|
98
|
-
|
99
|
-
<div id="section">
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
<!-- if method_list -->
|
109
|
-
<div id="methods">
|
110
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
111
|
-
|
112
|
-
<div id="method-M000003" class="method-detail">
|
113
|
-
<a name="M000003"></a>
|
114
|
-
|
115
|
-
<div class="method-heading">
|
116
|
-
<a href="#M000003" class="method-signature">
|
117
|
-
<span class="method-name">find_comments_by_user</span><span class="method-args">(user)</span>
|
118
|
-
</a>
|
119
|
-
</div>
|
120
|
-
|
121
|
-
<div class="method-description">
|
122
|
-
<p>
|
123
|
-
Helper class method to lookup comments for the mixin commentable type
|
124
|
-
written by a given user. This method is NOT equivalent to
|
125
|
-
Comment.find_comments_for_user
|
126
|
-
</p>
|
127
|
-
<p><a class="source-toggle" href="#"
|
128
|
-
onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
|
129
|
-
<div class="method-source-code" id="M000003-source">
|
130
|
-
<pre>
|
131
|
-
<span class="ruby-comment cmt"># File lib/acts_as_commentable_with_threading.rb, line 33</span>
|
132
|
-
33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_comments_by_user</span>(<span class="ruby-identifier">user</span>)
|
133
|
-
34: <span class="ruby-identifier">commentable</span> = <span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">:class_name_of_active_record_descendant</span>, <span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">to_s</span>
|
134
|
-
35:
|
135
|
-
36: <span class="ruby-constant">Comment</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">:all</span>,
|
136
|
-
37: <span class="ruby-identifier">:conditions</span> =<span class="ruby-operator">></span> [<span class="ruby-value str">"user_id = ? and commentable_type = ?"</span>, <span class="ruby-identifier">user</span>.<span class="ruby-identifier">id</span>, <span class="ruby-identifier">commentable</span>],
|
137
|
-
38: <span class="ruby-identifier">:order</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"created_at DESC"</span>
|
138
|
-
39: )
|
139
|
-
40: <span class="ruby-keyword kw">end</span>
|
140
|
-
</pre>
|
141
|
-
</div>
|
142
|
-
</div>
|
143
|
-
</div>
|
144
|
-
|
145
|
-
<div id="method-M000002" class="method-detail">
|
146
|
-
<a name="M000002"></a>
|
147
|
-
|
148
|
-
<div class="method-heading">
|
149
|
-
<a href="#M000002" class="method-signature">
|
150
|
-
<span class="method-name">find_comments_for</span><span class="method-args">(obj)</span>
|
151
|
-
</a>
|
152
|
-
</div>
|
153
|
-
|
154
|
-
<div class="method-description">
|
155
|
-
<p>
|
156
|
-
Helper method to lookup for comments for a given object. This method is
|
157
|
-
equivalent to obj.comments.
|
158
|
-
</p>
|
159
|
-
<p><a class="source-toggle" href="#"
|
160
|
-
onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
|
161
|
-
<div class="method-source-code" id="M000002-source">
|
162
|
-
<pre>
|
163
|
-
<span class="ruby-comment cmt"># File lib/acts_as_commentable_with_threading.rb, line 21</span>
|
164
|
-
21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_comments_for</span>(<span class="ruby-identifier">obj</span>)
|
165
|
-
22: <span class="ruby-identifier">commentable</span> = <span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">:class_name_of_active_record_descendant</span>, <span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">to_s</span>
|
166
|
-
23:
|
167
|
-
24: <span class="ruby-constant">Comment</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">:all</span>,
|
168
|
-
25: <span class="ruby-identifier">:conditions</span> =<span class="ruby-operator">></span> [<span class="ruby-value str">"commentable_id = ? and commentable_type = ?"</span>, <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">id</span>, <span class="ruby-identifier">commentable</span>],
|
169
|
-
26: <span class="ruby-identifier">:order</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"created_at DESC"</span>
|
170
|
-
27: )
|
171
|
-
28: <span class="ruby-keyword kw">end</span>
|
172
|
-
</pre>
|
173
|
-
</div>
|
174
|
-
</div>
|
175
|
-
</div>
|
176
|
-
|
177
|
-
|
178
|
-
</div>
|
179
|
-
|
180
|
-
|
181
|
-
</div>
|
182
|
-
|
183
|
-
|
184
|
-
<div id="validator-badges">
|
185
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
186
|
-
</div>
|
187
|
-
|
188
|
-
</body>
|
189
|
-
</html>
|
@@ -1,111 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: MuckComments</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">MuckComments</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../files/lib/muck_comments/tasks_rb.html">
|
59
|
-
lib/muck_comments/tasks.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
</div>
|
78
|
-
|
79
|
-
|
80
|
-
</div>
|
81
|
-
|
82
|
-
|
83
|
-
<!-- if includes -->
|
84
|
-
|
85
|
-
<div id="section">
|
86
|
-
|
87
|
-
<div id="class-list">
|
88
|
-
<h3 class="section-bar">Classes and Modules</h3>
|
89
|
-
|
90
|
-
Class <a href="MuckComments/Tasks.html" class="link">MuckComments::Tasks</a><br />
|
91
|
-
|
92
|
-
</div>
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
<!-- if method_list -->
|
101
|
-
|
102
|
-
|
103
|
-
</div>
|
104
|
-
|
105
|
-
|
106
|
-
<div id="validator-badges">
|
107
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
108
|
-
</div>
|
109
|
-
|
110
|
-
</body>
|
111
|
-
</html>
|