muck-activities 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/muck-activities.gemspec +7 -2
- data/rdoc/classes/ActionController/Routing/RouteSet.html +6 -6
- data/rdoc/classes/{MuckActivity → MuckActivities}/Tasks.html +8 -8
- data/rdoc/classes/MuckActivities.html +111 -0
- data/rdoc/classes/MuckActivity/ActMethods.html +101 -30
- data/rdoc/classes/MuckActivity/InstanceMethods.html +176 -44
- data/rdoc/created.rid +1 -1
- data/rdoc/files/README_rdoc.html +1 -1
- data/rdoc/files/lib/muck_activities/active_record/acts/muck_activity_rb.html +101 -0
- data/rdoc/files/lib/muck_activities/muck_activity_rb.html +101 -0
- data/rdoc/files/lib/muck_activities/tasks_rb.html +1 -1
- data/rdoc/files/lib/muck_activities_rb.html +2 -1
- data/rdoc/fr_class_index.html +2 -1
- data/rdoc/fr_file_index.html +2 -0
- data/rdoc/fr_method_index.html +12 -7
- metadata +5 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
data/muck-activities.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{muck-activities}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.10"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Justin Ball"]
|
@@ -53,9 +53,11 @@ Gem::Specification.new do |s|
|
|
53
53
|
"lib/muck_activities.rb",
|
54
54
|
"lib/muck_activities.rb",
|
55
55
|
"lib/muck_activities/active_record/acts/muck_activity.rb",
|
56
|
+
"lib/muck_activities/active_record/acts/muck_activity.rb",
|
56
57
|
"lib/muck_activities/initialize_routes.rb",
|
57
58
|
"lib/muck_activities/initialize_routes.rb",
|
58
59
|
"lib/muck_activities/muck_activity.rb",
|
60
|
+
"lib/muck_activities/muck_activity.rb",
|
59
61
|
"lib/muck_activities/tasks.rb",
|
60
62
|
"lib/muck_activities/tasks.rb",
|
61
63
|
"locales/ar.yml",
|
@@ -132,12 +134,15 @@ Gem::Specification.new do |s|
|
|
132
134
|
"rdoc/classes/ActionController.html",
|
133
135
|
"rdoc/classes/ActionController/Routing.html",
|
134
136
|
"rdoc/classes/ActionController/Routing/RouteSet.html",
|
137
|
+
"rdoc/classes/MuckActivities.html",
|
138
|
+
"rdoc/classes/MuckActivities/Tasks.html",
|
135
139
|
"rdoc/classes/MuckActivity/ActMethods.html",
|
136
140
|
"rdoc/classes/MuckActivity/InstanceMethods.html",
|
137
|
-
"rdoc/classes/MuckActivity/Tasks.html",
|
138
141
|
"rdoc/created.rid",
|
139
142
|
"rdoc/files/README_rdoc.html",
|
143
|
+
"rdoc/files/lib/muck_activities/active_record/acts/muck_activity_rb.html",
|
140
144
|
"rdoc/files/lib/muck_activities/initialize_routes_rb.html",
|
145
|
+
"rdoc/files/lib/muck_activities/muck_activity_rb.html",
|
141
146
|
"rdoc/files/lib/muck_activities/tasks_rb.html",
|
142
147
|
"rdoc/files/lib/muck_activities_rb.html",
|
143
148
|
"rdoc/fr_class_index.html",
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000002">load_routes_with_muck_activities!</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -108,19 +108,19 @@
|
|
108
108
|
<div id="methods">
|
109
109
|
<h3 class="section-bar">Public Instance methods</h3>
|
110
110
|
|
111
|
-
<div id="method-
|
112
|
-
<a name="
|
111
|
+
<div id="method-M000002" class="method-detail">
|
112
|
+
<a name="M000002"></a>
|
113
113
|
|
114
114
|
<div class="method-heading">
|
115
|
-
<a href="#
|
115
|
+
<a href="#M000002" class="method-signature">
|
116
116
|
<span class="method-name">load_routes_with_muck_activities!</span><span class="method-args">()</span>
|
117
117
|
</a>
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div class="method-description">
|
121
121
|
<p><a class="source-toggle" href="#"
|
122
|
-
onclick="toggleCode('
|
123
|
-
<div class="method-source-code" id="
|
122
|
+
onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
|
123
|
+
<div class="method-source-code" id="M000002-source">
|
124
124
|
<pre>
|
125
125
|
<span class="ruby-comment cmt"># File lib/muck_activities/initialize_routes.rb, line 2</span>
|
126
126
|
2: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_routes_with_muck_activities!</span>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
8
|
-
<title>Class:
|
8
|
+
<title>Class: MuckActivities::Tasks</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
11
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
@@ -50,7 +50,7 @@
|
|
50
50
|
<table class="header-table">
|
51
51
|
<tr class="top-aligned-row">
|
52
52
|
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">
|
53
|
+
<td class="class-name-in-header">MuckActivities::Tasks</td>
|
54
54
|
</tr>
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000001">new</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -108,19 +108,19 @@
|
|
108
108
|
<div id="methods">
|
109
109
|
<h3 class="section-bar">Public Class methods</h3>
|
110
110
|
|
111
|
-
<div id="method-
|
112
|
-
<a name="
|
111
|
+
<div id="method-M000001" class="method-detail">
|
112
|
+
<a name="M000001"></a>
|
113
113
|
|
114
114
|
<div class="method-heading">
|
115
|
-
<a href="#
|
115
|
+
<a href="#M000001" class="method-signature">
|
116
116
|
<span class="method-name">new</span><span class="method-args">()</span>
|
117
117
|
</a>
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div class="method-description">
|
121
121
|
<p><a class="source-toggle" href="#"
|
122
|
-
onclick="toggleCode('
|
123
|
-
<div class="method-source-code" id="
|
122
|
+
onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
|
123
|
+
<div class="method-source-code" id="M000001-source">
|
124
124
|
<pre>
|
125
125
|
<span class="ruby-comment cmt"># File lib/muck_activities/tasks.rb, line 7</span>
|
126
126
|
7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
@@ -0,0 +1,111 @@
|
|
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: MuckActivities</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">MuckActivities</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/lib/muck_activities/tasks_rb.html">
|
59
|
+
lib/muck_activities/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="MuckActivities/Tasks.html" class="link">MuckActivities::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>
|
@@ -55,8 +55,12 @@
|
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="../../files/lib/
|
59
|
-
lib/muck_activities.rb
|
58
|
+
<a href="../../files/lib/muck_activities/active_record/acts/muck_activity_rb.html">
|
59
|
+
lib/muck_activities/active_record/acts/muck_activity.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
<a href="../../files/lib/muck_activities/muck_activity_rb.html">
|
63
|
+
lib/muck_activities/muck_activity.rb
|
60
64
|
</a>
|
61
65
|
<br />
|
62
66
|
</td>
|
@@ -80,8 +84,10 @@
|
|
80
84
|
<h3 class="section-bar">Methods</h3>
|
81
85
|
|
82
86
|
<div class="name-list">
|
83
|
-
<a href="#
|
84
|
-
<a href="#
|
87
|
+
<a href="#M000006">acts_as_activity_source</a>
|
88
|
+
<a href="#M000004">acts_as_activity_source</a>
|
89
|
+
<a href="#M000005">has_activities</a>
|
90
|
+
<a href="#M000003">has_activities</a>
|
85
91
|
</div>
|
86
92
|
</div>
|
87
93
|
|
@@ -95,6 +101,8 @@
|
|
95
101
|
<div id="includes-list">
|
96
102
|
<span class="include-name"><a href="InstanceMethods.html">InstanceMethods</a></span>
|
97
103
|
<span class="include-name"><a href="InstanceMethods.html">InstanceMethods</a></span>
|
104
|
+
<span class="include-name"><a href="InstanceMethods.html">InstanceMethods</a></span>
|
105
|
+
<span class="include-name"><a href="InstanceMethods.html">InstanceMethods</a></span>
|
98
106
|
</div>
|
99
107
|
</div>
|
100
108
|
|
@@ -111,64 +119,127 @@
|
|
111
119
|
<div id="methods">
|
112
120
|
<h3 class="section-bar">Public Instance methods</h3>
|
113
121
|
|
114
|
-
<div id="method-
|
115
|
-
<a name="
|
122
|
+
<div id="method-M000006" class="method-detail">
|
123
|
+
<a name="M000006"></a>
|
116
124
|
|
117
125
|
<div class="method-heading">
|
118
|
-
<a href="#
|
126
|
+
<a href="#M000006" class="method-signature">
|
119
127
|
<span class="method-name">acts_as_activity_source</span><span class="method-args">()</span>
|
120
128
|
</a>
|
121
129
|
</div>
|
122
130
|
|
123
131
|
<div class="method-description">
|
124
132
|
<p>
|
125
|
-
<tt><a href="ActMethods.html#
|
133
|
+
<tt><a href="ActMethods.html#M000004">acts_as_activity_source</a></tt>
|
126
134
|
gives the class it is called on a method called <tt>add_activity</tt> that
|
127
135
|
can add activities into a feed.
|
128
136
|
</p>
|
129
137
|
<p><a class="source-toggle" href="#"
|
130
|
-
onclick="toggleCode('
|
131
|
-
<div class="method-source-code" id="
|
138
|
+
onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
|
139
|
+
<div class="method-source-code" id="M000006-source">
|
132
140
|
<pre>
|
133
|
-
<span class="ruby-comment cmt"># File lib/muck_activities.rb, line
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
141
|
+
<span class="ruby-comment cmt"># File lib/muck_activities/muck_activity.rb, line 22</span>
|
142
|
+
22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">acts_as_activity_source</span>
|
143
|
+
23: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">included_modules</span>.<span class="ruby-identifier">include?</span> <span class="ruby-constant">InstanceMethods</span>
|
144
|
+
24: <span class="ruby-identifier">include</span> <span class="ruby-constant">InstanceMethods</span>
|
145
|
+
25: <span class="ruby-keyword kw">end</span>
|
146
|
+
26: <span class="ruby-keyword kw">end</span>
|
139
147
|
</pre>
|
140
148
|
</div>
|
141
149
|
</div>
|
142
150
|
</div>
|
143
151
|
|
144
|
-
<div id="method-
|
145
|
-
<a name="
|
152
|
+
<div id="method-M000004" class="method-detail">
|
153
|
+
<a name="M000004"></a>
|
146
154
|
|
147
155
|
<div class="method-heading">
|
148
|
-
<a href="#
|
156
|
+
<a href="#M000004" class="method-signature">
|
157
|
+
<span class="method-name">acts_as_activity_source</span><span class="method-args">()</span>
|
158
|
+
</a>
|
159
|
+
</div>
|
160
|
+
|
161
|
+
<div class="method-description">
|
162
|
+
<p>
|
163
|
+
<tt><a href="ActMethods.html#M000004">acts_as_activity_source</a></tt>
|
164
|
+
gives the class it is called on a method called <tt>add_activity</tt> that
|
165
|
+
can add activities into a feed.
|
166
|
+
</p>
|
167
|
+
<p><a class="source-toggle" href="#"
|
168
|
+
onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
|
169
|
+
<div class="method-source-code" id="M000004-source">
|
170
|
+
<pre>
|
171
|
+
<span class="ruby-comment cmt"># File lib/muck_activities/active_record/acts/muck_activity.rb, line 22</span>
|
172
|
+
22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">acts_as_activity_source</span>
|
173
|
+
23: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">included_modules</span>.<span class="ruby-identifier">include?</span> <span class="ruby-constant">InstanceMethods</span>
|
174
|
+
24: <span class="ruby-identifier">include</span> <span class="ruby-constant">InstanceMethods</span>
|
175
|
+
25: <span class="ruby-keyword kw">end</span>
|
176
|
+
26: <span class="ruby-keyword kw">end</span>
|
177
|
+
</pre>
|
178
|
+
</div>
|
179
|
+
</div>
|
180
|
+
</div>
|
181
|
+
|
182
|
+
<div id="method-M000005" class="method-detail">
|
183
|
+
<a name="M000005"></a>
|
184
|
+
|
185
|
+
<div class="method-heading">
|
186
|
+
<a href="#M000005" class="method-signature">
|
149
187
|
<span class="method-name">has_activities</span><span class="method-args">()</span>
|
150
188
|
</a>
|
151
189
|
</div>
|
152
190
|
|
153
191
|
<div class="method-description">
|
154
192
|
<p>
|
155
|
-
<tt><a href="ActMethods.html#
|
193
|
+
<tt><a href="ActMethods.html#M000003">has_activities</a></tt> gives the
|
156
194
|
class it is called on an activity feed and a method called
|
157
195
|
<tt>add_activity</tt> that can add activities into a feed. Retrieve
|
158
196
|
activity feed items via object.activities. ie @user.activities.
|
159
197
|
</p>
|
160
198
|
<p><a class="source-toggle" href="#"
|
161
|
-
onclick="toggleCode('
|
162
|
-
<div class="method-source-code" id="
|
199
|
+
onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
|
200
|
+
<div class="method-source-code" id="M000005-source">
|
201
|
+
<pre>
|
202
|
+
<span class="ruby-comment cmt"># File lib/muck_activities/muck_activity.rb, line 12</span>
|
203
|
+
12: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_activities</span>
|
204
|
+
13: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">included_modules</span>.<span class="ruby-identifier">include?</span> <span class="ruby-constant">InstanceMethods</span>
|
205
|
+
14: <span class="ruby-identifier">has_many</span> <span class="ruby-identifier">:activity_feeds</span>, <span class="ruby-identifier">:as</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">:ownable</span>
|
206
|
+
15: <span class="ruby-identifier">has_many</span> <span class="ruby-identifier">:activities</span>, <span class="ruby-identifier">:through</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">:activity_feeds</span>, <span class="ruby-identifier">:order</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'created_at desc'</span>
|
207
|
+
16: <span class="ruby-identifier">include</span> <span class="ruby-constant">InstanceMethods</span>
|
208
|
+
17: <span class="ruby-keyword kw">end</span>
|
209
|
+
18: <span class="ruby-keyword kw">end</span>
|
210
|
+
</pre>
|
211
|
+
</div>
|
212
|
+
</div>
|
213
|
+
</div>
|
214
|
+
|
215
|
+
<div id="method-M000003" class="method-detail">
|
216
|
+
<a name="M000003"></a>
|
217
|
+
|
218
|
+
<div class="method-heading">
|
219
|
+
<a href="#M000003" class="method-signature">
|
220
|
+
<span class="method-name">has_activities</span><span class="method-args">()</span>
|
221
|
+
</a>
|
222
|
+
</div>
|
223
|
+
|
224
|
+
<div class="method-description">
|
225
|
+
<p>
|
226
|
+
<tt><a href="ActMethods.html#M000003">has_activities</a></tt> gives the
|
227
|
+
class it is called on an activity feed and a method called
|
228
|
+
<tt>add_activity</tt> that can add activities into a feed. Retrieve
|
229
|
+
activity feed items via object.activities. ie @user.activities.
|
230
|
+
</p>
|
231
|
+
<p><a class="source-toggle" href="#"
|
232
|
+
onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
|
233
|
+
<div class="method-source-code" id="M000003-source">
|
163
234
|
<pre>
|
164
|
-
<span class="ruby-comment cmt"># File lib/muck_activities.rb, line
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
235
|
+
<span class="ruby-comment cmt"># File lib/muck_activities/active_record/acts/muck_activity.rb, line 12</span>
|
236
|
+
12: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_activities</span>
|
237
|
+
13: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">included_modules</span>.<span class="ruby-identifier">include?</span> <span class="ruby-constant">InstanceMethods</span>
|
238
|
+
14: <span class="ruby-identifier">has_many</span> <span class="ruby-identifier">:activity_feeds</span>, <span class="ruby-identifier">:as</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">:ownable</span>
|
239
|
+
15: <span class="ruby-identifier">has_many</span> <span class="ruby-identifier">:activities</span>, <span class="ruby-identifier">:through</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">:activity_feeds</span>, <span class="ruby-identifier">:order</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'created_at desc'</span>
|
240
|
+
16: <span class="ruby-identifier">include</span> <span class="ruby-constant">InstanceMethods</span>
|
241
|
+
17: <span class="ruby-keyword kw">end</span>
|
242
|
+
18: <span class="ruby-keyword kw">end</span>
|
172
243
|
</pre>
|
173
244
|
</div>
|
174
245
|
</div>
|
@@ -55,8 +55,12 @@
|
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="../../files/lib/
|
59
|
-
lib/muck_activities.rb
|
58
|
+
<a href="../../files/lib/muck_activities/active_record/acts/muck_activity_rb.html">
|
59
|
+
lib/muck_activities/active_record/acts/muck_activity.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
<a href="../../files/lib/muck_activities/muck_activity_rb.html">
|
63
|
+
lib/muck_activities/muck_activity.rb
|
60
64
|
</a>
|
61
65
|
<br />
|
62
66
|
</td>
|
@@ -80,9 +84,12 @@
|
|
80
84
|
<h3 class="section-bar">Methods</h3>
|
81
85
|
|
82
86
|
<div class="name-list">
|
83
|
-
<a href="#
|
84
|
-
<a href="#
|
85
|
-
<a href="#
|
87
|
+
<a href="#M000007">add_activity</a>
|
88
|
+
<a href="#M000010">add_activity</a>
|
89
|
+
<a href="#M000009">can_view?</a>
|
90
|
+
<a href="#M000012">can_view?</a>
|
91
|
+
<a href="#M000008">status</a>
|
92
|
+
<a href="#M000011">status</a>
|
86
93
|
</div>
|
87
94
|
</div>
|
88
95
|
|
@@ -104,18 +111,90 @@
|
|
104
111
|
<div id="methods">
|
105
112
|
<h3 class="section-bar">Public Instance methods</h3>
|
106
113
|
|
107
|
-
<div id="method-
|
108
|
-
<a name="
|
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_activity</span><span class="method-args">(feed_to, source, item, template, title = '', content = '', check_method = nil)</span>
|
120
|
+
</a>
|
121
|
+
</div>
|
122
|
+
|
123
|
+
<div class="method-description">
|
124
|
+
<p>
|
125
|
+
<tt><a href="InstanceMethods.html#M000007">add_activity</a></tt> adds an
|
126
|
+
activity to all activites feeds that belong to the objects found in
|
127
|
+
feed_to.
|
128
|
+
</p>
|
129
|
+
<ul>
|
130
|
+
<li><tt>feed_to</tt>: an array of objects that have <tt>has_activities</tt>
|
131
|
+
declared on them. The generated activity will be pushed into the feed of
|
132
|
+
each of these objects.
|
133
|
+
|
134
|
+
</li>
|
135
|
+
<li><tt>source</tt>: the object that peformed the activity ie a user or group
|
136
|
+
|
137
|
+
</li>
|
138
|
+
<li><tt>item</tt>: an object that will be used to generated the entry in an
|
139
|
+
activity feed
|
140
|
+
|
141
|
+
</li>
|
142
|
+
<li><tt>template</tt>: name of an partial that will be used to generated the
|
143
|
+
entry in the activity feed. Place templates in
|
144
|
+
/app/views/activity_templates
|
145
|
+
|
146
|
+
</li>
|
147
|
+
<li><tt>title</tt>: optional title that can be used in the template
|
148
|
+
|
149
|
+
</li>
|
150
|
+
<li><tt>content</tt>: option content that can be used in the template. Useful
|
151
|
+
for activities that might not have
|
152
|
+
|
153
|
+
<pre>
|
154
|
+
an item but instead might have a message or other text.
|
155
|
+
</pre>
|
156
|
+
</li>
|
157
|
+
<li><tt>check_method</tt>: method that will be called on each item in the
|
158
|
+
feed_to array. If the method evaluates to false the activity won‘t be
|
159
|
+
added to the object‘s activity feed. An example usage would be
|
160
|
+
letting users configure which items they want to have in their activity
|
161
|
+
feed.
|
162
|
+
|
163
|
+
</li>
|
164
|
+
</ul>
|
165
|
+
<p><a class="source-toggle" href="#"
|
166
|
+
onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
|
167
|
+
<div class="method-source-code" id="M000007-source">
|
168
|
+
<pre>
|
169
|
+
<span class="ruby-comment cmt"># File lib/muck_activities/active_record/acts/muck_activity.rb, line 45</span>
|
170
|
+
45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_activity</span>(<span class="ruby-identifier">feed_to</span>, <span class="ruby-identifier">source</span>, <span class="ruby-identifier">item</span>, <span class="ruby-identifier">template</span>, <span class="ruby-identifier">title</span> = <span class="ruby-value str">''</span>, <span class="ruby-identifier">content</span> = <span class="ruby-value str">''</span>, <span class="ruby-identifier">check_method</span> = <span class="ruby-keyword kw">nil</span>)
|
171
|
+
46: <span class="ruby-identifier">feed_to</span> = [<span class="ruby-identifier">feed_to</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">feed_to</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
172
|
+
47: <span class="ruby-identifier">activity</span> = <span class="ruby-constant">Activity</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">:item</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">item</span>, <span class="ruby-identifier">:source</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">source</span>, <span class="ruby-identifier">:template</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">template</span>, <span class="ruby-identifier">:title</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">title</span>, <span class="ruby-identifier">:content</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">content</span>)
|
173
|
+
48: <span class="ruby-identifier">feed_to</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ft</span><span class="ruby-operator">|</span>
|
174
|
+
49: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">check_method</span>
|
175
|
+
50: <span class="ruby-identifier">ft</span>.<span class="ruby-identifier">activities</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">activity</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ft</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">check_method</span>)
|
176
|
+
51: <span class="ruby-keyword kw">else</span>
|
177
|
+
52: <span class="ruby-identifier">ft</span>.<span class="ruby-identifier">activities</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">activity</span>
|
178
|
+
53: <span class="ruby-keyword kw">end</span>
|
179
|
+
54: <span class="ruby-keyword kw">end</span>
|
180
|
+
55: <span class="ruby-keyword kw">end</span>
|
181
|
+
</pre>
|
182
|
+
</div>
|
183
|
+
</div>
|
184
|
+
</div>
|
185
|
+
|
186
|
+
<div id="method-M000010" class="method-detail">
|
187
|
+
<a name="M000010"></a>
|
109
188
|
|
110
189
|
<div class="method-heading">
|
111
|
-
<a href="#
|
190
|
+
<a href="#M000010" class="method-signature">
|
112
191
|
<span class="method-name">add_activity</span><span class="method-args">(feed_to, source, item, template, title = '', content = '', check_method = nil)</span>
|
113
192
|
</a>
|
114
193
|
</div>
|
115
194
|
|
116
195
|
<div class="method-description">
|
117
196
|
<p>
|
118
|
-
<tt><a href="InstanceMethods.html#
|
197
|
+
<tt><a href="InstanceMethods.html#M000007">add_activity</a></tt> adds an
|
119
198
|
activity to all activites feeds that belong to the objects found in
|
120
199
|
feed_to.
|
121
200
|
</p>
|
@@ -156,74 +235,127 @@ feed.
|
|
156
235
|
</li>
|
157
236
|
</ul>
|
158
237
|
<p><a class="source-toggle" href="#"
|
159
|
-
onclick="toggleCode('
|
160
|
-
<div class="method-source-code" id="
|
238
|
+
onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
|
239
|
+
<div class="method-source-code" id="M000010-source">
|
240
|
+
<pre>
|
241
|
+
<span class="ruby-comment cmt"># File lib/muck_activities/muck_activity.rb, line 45</span>
|
242
|
+
45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_activity</span>(<span class="ruby-identifier">feed_to</span>, <span class="ruby-identifier">source</span>, <span class="ruby-identifier">item</span>, <span class="ruby-identifier">template</span>, <span class="ruby-identifier">title</span> = <span class="ruby-value str">''</span>, <span class="ruby-identifier">content</span> = <span class="ruby-value str">''</span>, <span class="ruby-identifier">check_method</span> = <span class="ruby-keyword kw">nil</span>)
|
243
|
+
46: <span class="ruby-identifier">feed_to</span> = [<span class="ruby-identifier">feed_to</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">feed_to</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
244
|
+
47: <span class="ruby-identifier">activity</span> = <span class="ruby-constant">Activity</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">:item</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">item</span>, <span class="ruby-identifier">:source</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">source</span>, <span class="ruby-identifier">:template</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">template</span>, <span class="ruby-identifier">:title</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">title</span>, <span class="ruby-identifier">:content</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">content</span>)
|
245
|
+
48: <span class="ruby-identifier">feed_to</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ft</span><span class="ruby-operator">|</span>
|
246
|
+
49: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">check_method</span>
|
247
|
+
50: <span class="ruby-identifier">ft</span>.<span class="ruby-identifier">activities</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">activity</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ft</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">check_method</span>)
|
248
|
+
51: <span class="ruby-keyword kw">else</span>
|
249
|
+
52: <span class="ruby-identifier">ft</span>.<span class="ruby-identifier">activities</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">activity</span>
|
250
|
+
53: <span class="ruby-keyword kw">end</span>
|
251
|
+
54: <span class="ruby-keyword kw">end</span>
|
252
|
+
55: <span class="ruby-keyword kw">end</span>
|
253
|
+
</pre>
|
254
|
+
</div>
|
255
|
+
</div>
|
256
|
+
</div>
|
257
|
+
|
258
|
+
<div id="method-M000009" class="method-detail">
|
259
|
+
<a name="M000009"></a>
|
260
|
+
|
261
|
+
<div class="method-heading">
|
262
|
+
<a href="#M000009" class="method-signature">
|
263
|
+
<span class="method-name">can_view?</span><span class="method-args">(check_object)</span>
|
264
|
+
</a>
|
265
|
+
</div>
|
266
|
+
|
267
|
+
<div class="method-description">
|
268
|
+
<p><a class="source-toggle" href="#"
|
269
|
+
onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
|
270
|
+
<div class="method-source-code" id="M000009-source">
|
161
271
|
<pre>
|
162
|
-
<span class="ruby-comment cmt"># File lib/muck_activities.rb, line
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
51: <span class="ruby-identifier">feed_to</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ft</span><span class="ruby-operator">|</span>
|
167
|
-
52: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">check_method</span>
|
168
|
-
53: <span class="ruby-identifier">ft</span>.<span class="ruby-identifier">activities</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">activity</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ft</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">check_method</span>)
|
169
|
-
54: <span class="ruby-keyword kw">else</span>
|
170
|
-
55: <span class="ruby-identifier">ft</span>.<span class="ruby-identifier">activities</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">activity</span>
|
171
|
-
56: <span class="ruby-keyword kw">end</span>
|
172
|
-
57: <span class="ruby-keyword kw">end</span>
|
173
|
-
58: <span class="ruby-keyword kw">end</span>
|
272
|
+
<span class="ruby-comment cmt"># File lib/muck_activities/active_record/acts/muck_activity.rb, line 63</span>
|
273
|
+
63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">can_view?</span>(<span class="ruby-identifier">check_object</span>)
|
274
|
+
64: <span class="ruby-keyword kw">self</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">check_object</span>
|
275
|
+
65: <span class="ruby-keyword kw">end</span>
|
174
276
|
</pre>
|
175
277
|
</div>
|
176
278
|
</div>
|
177
279
|
</div>
|
178
280
|
|
179
|
-
<div id="method-
|
180
|
-
<a name="
|
281
|
+
<div id="method-M000012" class="method-detail">
|
282
|
+
<a name="M000012"></a>
|
181
283
|
|
182
284
|
<div class="method-heading">
|
183
|
-
<a href="#
|
285
|
+
<a href="#M000012" class="method-signature">
|
184
286
|
<span class="method-name">can_view?</span><span class="method-args">(check_object)</span>
|
185
287
|
</a>
|
186
288
|
</div>
|
187
289
|
|
188
290
|
<div class="method-description">
|
189
291
|
<p><a class="source-toggle" href="#"
|
190
|
-
onclick="toggleCode('
|
191
|
-
<div class="method-source-code" id="
|
292
|
+
onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
|
293
|
+
<div class="method-source-code" id="M000012-source">
|
294
|
+
<pre>
|
295
|
+
<span class="ruby-comment cmt"># File lib/muck_activities/muck_activity.rb, line 63</span>
|
296
|
+
63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">can_view?</span>(<span class="ruby-identifier">check_object</span>)
|
297
|
+
64: <span class="ruby-keyword kw">self</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">check_object</span>
|
298
|
+
65: <span class="ruby-keyword kw">end</span>
|
299
|
+
</pre>
|
300
|
+
</div>
|
301
|
+
</div>
|
302
|
+
</div>
|
303
|
+
|
304
|
+
<div id="method-M000008" class="method-detail">
|
305
|
+
<a name="M000008"></a>
|
306
|
+
|
307
|
+
<div class="method-heading">
|
308
|
+
<a href="#M000008" class="method-signature">
|
309
|
+
<span class="method-name">status</span><span class="method-args">()</span>
|
310
|
+
</a>
|
311
|
+
</div>
|
312
|
+
|
313
|
+
<div class="method-description">
|
314
|
+
<p>
|
315
|
+
<tt><a href="InstanceMethods.html#M000008">status</a></tt> returns the
|
316
|
+
first activity item from the user‘s activity feed that is a <a
|
317
|
+
href="InstanceMethods.html#M000008">status</a> update. Used for displaying
|
318
|
+
the last <a href="InstanceMethods.html#M000008">status</a> update the user
|
319
|
+
made
|
320
|
+
</p>
|
321
|
+
<p><a class="source-toggle" href="#"
|
322
|
+
onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
|
323
|
+
<div class="method-source-code" id="M000008-source">
|
192
324
|
<pre>
|
193
|
-
<span class="ruby-comment cmt"># File lib/muck_activities.rb, line
|
194
|
-
|
195
|
-
|
196
|
-
|
325
|
+
<span class="ruby-comment cmt"># File lib/muck_activities/active_record/acts/muck_activity.rb, line 59</span>
|
326
|
+
59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>
|
327
|
+
60: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">activities</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">:first</span>, <span class="ruby-identifier">:conditions</span> =<span class="ruby-operator">></span> [<span class="ruby-value str">'is_status_update = true'</span>], <span class="ruby-identifier">:order</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'created_at DESC'</span>)
|
328
|
+
61: <span class="ruby-keyword kw">end</span>
|
197
329
|
</pre>
|
198
330
|
</div>
|
199
331
|
</div>
|
200
332
|
</div>
|
201
333
|
|
202
|
-
<div id="method-
|
203
|
-
<a name="
|
334
|
+
<div id="method-M000011" class="method-detail">
|
335
|
+
<a name="M000011"></a>
|
204
336
|
|
205
337
|
<div class="method-heading">
|
206
|
-
<a href="#
|
338
|
+
<a href="#M000011" class="method-signature">
|
207
339
|
<span class="method-name">status</span><span class="method-args">()</span>
|
208
340
|
</a>
|
209
341
|
</div>
|
210
342
|
|
211
343
|
<div class="method-description">
|
212
344
|
<p>
|
213
|
-
<tt><a href="InstanceMethods.html#
|
345
|
+
<tt><a href="InstanceMethods.html#M000008">status</a></tt> returns the
|
214
346
|
first activity item from the user‘s activity feed that is a <a
|
215
|
-
href="InstanceMethods.html#
|
216
|
-
the last <a href="InstanceMethods.html#
|
347
|
+
href="InstanceMethods.html#M000008">status</a> update. Used for displaying
|
348
|
+
the last <a href="InstanceMethods.html#M000008">status</a> update the user
|
217
349
|
made
|
218
350
|
</p>
|
219
351
|
<p><a class="source-toggle" href="#"
|
220
|
-
onclick="toggleCode('
|
221
|
-
<div class="method-source-code" id="
|
352
|
+
onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
|
353
|
+
<div class="method-source-code" id="M000011-source">
|
222
354
|
<pre>
|
223
|
-
<span class="ruby-comment cmt"># File lib/muck_activities.rb, line
|
224
|
-
|
225
|
-
|
226
|
-
|
355
|
+
<span class="ruby-comment cmt"># File lib/muck_activities/muck_activity.rb, line 59</span>
|
356
|
+
59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>
|
357
|
+
60: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">activities</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">:first</span>, <span class="ruby-identifier">:conditions</span> =<span class="ruby-operator">></span> [<span class="ruby-value str">'is_status_update = true'</span>], <span class="ruby-identifier">:order</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'created_at DESC'</span>)
|
358
|
+
61: <span class="ruby-keyword kw">end</span>
|
227
359
|
</pre>
|
228
360
|
</div>
|
229
361
|
</div>
|
data/rdoc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Thu, 18 Jun 2009 11:30:28 -0600
|
data/rdoc/files/README_rdoc.html
CHANGED
@@ -69,7 +69,7 @@
|
|
69
69
|
<div id="contextContent">
|
70
70
|
|
71
71
|
<div id="description">
|
72
|
-
<h1>MuckActivities</h1>
|
72
|
+
<h1><a href="../classes/MuckActivities.html">MuckActivities</a></h1>
|
73
73
|
<h2>Installation</h2>
|
74
74
|
<p>
|
75
75
|
The muck activities engine is part of the muck framework and relies upon
|
@@ -0,0 +1,101 @@
|
|
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>File: muck_activity.rb</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="fileHeader">
|
50
|
+
<h1>muck_activity.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/muck_activities/active_record/acts/muck_activity.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Wed Jun 17 17:28:20 -0600 2009</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
|
78
|
+
|
79
|
+
<!-- if includes -->
|
80
|
+
|
81
|
+
<div id="section">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<!-- if method_list -->
|
91
|
+
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
<div id="validator-badges">
|
97
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</body>
|
101
|
+
</html>
|
@@ -0,0 +1,101 @@
|
|
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>File: muck_activity.rb</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="fileHeader">
|
50
|
+
<h1>muck_activity.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/muck_activities/muck_activity.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Wed Jun 17 17:30:24 -0600 2009</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
|
78
|
+
|
79
|
+
<!-- if includes -->
|
80
|
+
|
81
|
+
<div id="section">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<!-- if method_list -->
|
91
|
+
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
<div id="validator-badges">
|
97
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</body>
|
101
|
+
</html>
|
@@ -56,7 +56,7 @@
|
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Wed Jun 17 17:30:16 -0600 2009</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -75,6 +75,7 @@
|
|
75
75
|
<div class="name-list">
|
76
76
|
cgi
|
77
77
|
muck_activities/initialize_routes
|
78
|
+
muck_activities/muck_activity
|
78
79
|
</div>
|
79
80
|
</div>
|
80
81
|
|
data/rdoc/fr_class_index.html
CHANGED
@@ -23,9 +23,10 @@
|
|
23
23
|
<a href="classes/ActionController.html">ActionController</a><br />
|
24
24
|
<a href="classes/ActionController/Routing.html">ActionController::Routing</a><br />
|
25
25
|
<a href="classes/ActionController/Routing/RouteSet.html">ActionController::Routing::RouteSet</a><br />
|
26
|
+
<a href="classes/MuckActivities.html">MuckActivities</a><br />
|
27
|
+
<a href="classes/MuckActivities/Tasks.html">MuckActivities::Tasks</a><br />
|
26
28
|
<a href="classes/MuckActivity/ActMethods.html">MuckActivity::ActMethods</a><br />
|
27
29
|
<a href="classes/MuckActivity/InstanceMethods.html">MuckActivity::InstanceMethods</a><br />
|
28
|
-
<a href="classes/MuckActivity/Tasks.html">MuckActivity::Tasks</a><br />
|
29
30
|
</div>
|
30
31
|
</div>
|
31
32
|
</body>
|
data/rdoc/fr_file_index.html
CHANGED
@@ -22,7 +22,9 @@
|
|
22
22
|
<div id="index-entries">
|
23
23
|
<a href="files/README_rdoc.html">README.rdoc</a><br />
|
24
24
|
<a href="files/lib/muck_activities_rb.html">lib/muck_activities.rb</a><br />
|
25
|
+
<a href="files/lib/muck_activities/active_record/acts/muck_activity_rb.html">lib/muck_activities/active_record/acts/muck_activity.rb</a><br />
|
25
26
|
<a href="files/lib/muck_activities/initialize_routes_rb.html">lib/muck_activities/initialize_routes.rb</a><br />
|
27
|
+
<a href="files/lib/muck_activities/muck_activity_rb.html">lib/muck_activities/muck_activity.rb</a><br />
|
26
28
|
<a href="files/lib/muck_activities/tasks_rb.html">lib/muck_activities/tasks.rb</a><br />
|
27
29
|
</div>
|
28
30
|
</div>
|
data/rdoc/fr_method_index.html
CHANGED
@@ -20,13 +20,18 @@
|
|
20
20
|
<div id="index">
|
21
21
|
<h1 class="section-bar">Methods</h1>
|
22
22
|
<div id="index-entries">
|
23
|
-
<a href="classes/MuckActivity/ActMethods.html#
|
24
|
-
<a href="classes/MuckActivity/
|
25
|
-
<a href="classes/MuckActivity/InstanceMethods.html#
|
26
|
-
<a href="classes/MuckActivity/
|
27
|
-
<a href="classes/
|
28
|
-
<a href="classes/MuckActivity/
|
29
|
-
<a href="classes/MuckActivity/
|
23
|
+
<a href="classes/MuckActivity/ActMethods.html#M000006">acts_as_activity_source (MuckActivity::ActMethods)</a><br />
|
24
|
+
<a href="classes/MuckActivity/ActMethods.html#M000004">acts_as_activity_source (MuckActivity::ActMethods)</a><br />
|
25
|
+
<a href="classes/MuckActivity/InstanceMethods.html#M000010">add_activity (MuckActivity::InstanceMethods)</a><br />
|
26
|
+
<a href="classes/MuckActivity/InstanceMethods.html#M000007">add_activity (MuckActivity::InstanceMethods)</a><br />
|
27
|
+
<a href="classes/MuckActivity/InstanceMethods.html#M000009">can_view? (MuckActivity::InstanceMethods)</a><br />
|
28
|
+
<a href="classes/MuckActivity/InstanceMethods.html#M000012">can_view? (MuckActivity::InstanceMethods)</a><br />
|
29
|
+
<a href="classes/MuckActivity/ActMethods.html#M000005">has_activities (MuckActivity::ActMethods)</a><br />
|
30
|
+
<a href="classes/MuckActivity/ActMethods.html#M000003">has_activities (MuckActivity::ActMethods)</a><br />
|
31
|
+
<a href="classes/ActionController/Routing/RouteSet.html#M000002">load_routes_with_muck_activities! (ActionController::Routing::RouteSet)</a><br />
|
32
|
+
<a href="classes/MuckActivities/Tasks.html#M000001">new (MuckActivities::Tasks)</a><br />
|
33
|
+
<a href="classes/MuckActivity/InstanceMethods.html#M000011">status (MuckActivity::InstanceMethods)</a><br />
|
34
|
+
<a href="classes/MuckActivity/InstanceMethods.html#M000008">status (MuckActivity::InstanceMethods)</a><br />
|
30
35
|
</div>
|
31
36
|
</div>
|
32
37
|
</body>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-activities
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Ball
|
@@ -116,12 +116,15 @@ files:
|
|
116
116
|
- rdoc/classes/ActionController.html
|
117
117
|
- rdoc/classes/ActionController/Routing.html
|
118
118
|
- rdoc/classes/ActionController/Routing/RouteSet.html
|
119
|
+
- rdoc/classes/MuckActivities.html
|
120
|
+
- rdoc/classes/MuckActivities/Tasks.html
|
119
121
|
- rdoc/classes/MuckActivity/ActMethods.html
|
120
122
|
- rdoc/classes/MuckActivity/InstanceMethods.html
|
121
|
-
- rdoc/classes/MuckActivity/Tasks.html
|
122
123
|
- rdoc/created.rid
|
123
124
|
- rdoc/files/README_rdoc.html
|
125
|
+
- rdoc/files/lib/muck_activities/active_record/acts/muck_activity_rb.html
|
124
126
|
- rdoc/files/lib/muck_activities/initialize_routes_rb.html
|
127
|
+
- rdoc/files/lib/muck_activities/muck_activity_rb.html
|
125
128
|
- rdoc/files/lib/muck_activities/tasks_rb.html
|
126
129
|
- rdoc/files/lib/muck_activities_rb.html
|
127
130
|
- rdoc/fr_class_index.html
|