scharfie-rails-footnotes 3.4.2 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -0
- data/pkg/scharfie-rails-footnotes-3.4.2.gem +0 -0
- data/rdoc/classes/ActionController.html +107 -0
- data/rdoc/classes/ActionController/Base.html +119 -0
- data/rdoc/classes/Footnotes.html +186 -0
- data/rdoc/classes/Footnotes/Components.html +211 -0
- data/rdoc/classes/Footnotes/Extensions.html +128 -0
- data/rdoc/classes/Footnotes/Extensions/AbstractAdapter.html +148 -0
- data/rdoc/classes/Footnotes/Extensions/Exception.html +205 -0
- data/rdoc/classes/Footnotes/Extensions/MockController.html +111 -0
- data/rdoc/classes/Footnotes/Extensions/QueryAnalyzer.html +183 -0
- data/rdoc/classes/Footnotes/Extensions/Routes.html +148 -0
- data/rdoc/classes/Footnotes/Extensions/Sql.html +191 -0
- data/rdoc/classes/Footnotes/Filter.html +928 -0
- data/rdoc/classes/Footnotes/Notes.html +194 -0
- data/rdoc/classes/Footnotes/Notes/AbstractNote.html +698 -0
- data/rdoc/classes/Footnotes/Notes/ComponentsNote.html +221 -0
- data/rdoc/classes/Footnotes/Notes/ComponentsNote/ClassMethods.html +164 -0
- data/rdoc/classes/Footnotes/Notes/ControllerComponentNote.html +120 -0
- data/rdoc/classes/Footnotes/Notes/ControllerNote.html +361 -0
- data/rdoc/classes/Footnotes/Notes/CookiesNote.html +198 -0
- data/rdoc/classes/Footnotes/Notes/EnvNote.html +178 -0
- data/rdoc/classes/Footnotes/Notes/FilesNote.html +284 -0
- data/rdoc/classes/Footnotes/Notes/FiltersNote.html +291 -0
- data/rdoc/classes/Footnotes/Notes/GeneralNote.html +196 -0
- data/rdoc/classes/Footnotes/Notes/JavascriptsNote.html +174 -0
- data/rdoc/classes/Footnotes/Notes/LayoutNote.html +248 -0
- data/rdoc/classes/Footnotes/Notes/LogNote.html +216 -0
- data/rdoc/classes/Footnotes/Notes/ParamsComponentNote.html +120 -0
- data/rdoc/classes/Footnotes/Notes/ParamsNote.html +198 -0
- data/rdoc/classes/Footnotes/Notes/QueriesNote.html +384 -0
- data/rdoc/classes/Footnotes/Notes/RoutesNote.html +240 -0
- data/rdoc/classes/Footnotes/Notes/SessionNote.html +174 -0
- data/rdoc/classes/Footnotes/Notes/StylesheetsNote.html +174 -0
- data/rdoc/classes/Footnotes/Notes/ViewComponentNote.html +120 -0
- data/rdoc/classes/Footnotes/Notes/ViewNote.html +273 -0
- data/rdoc/created.rid +1 -0
- data/rdoc/files/README.html +118 -0
- data/rdoc/files/lib/rails-footnotes/backtracer_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/footnotes_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/abstract_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/components_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/controller_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/cookies_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/env_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/files_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/filters_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/general_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/javascripts_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/layout_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/log_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/params_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/queries_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/routes_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/session_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/stylesheets_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/view_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes_rb.html +101 -0
- data/rdoc/fr_class_index.html +60 -0
- data/rdoc/fr_file_index.html +47 -0
- data/rdoc/fr_method_index.html +156 -0
- data/rdoc/index.html +24 -0
- data/rdoc/rdoc-style.css +208 -0
- data/scharfie-rails-footnotes.gemspec +142 -0
- metadata +66 -3
- data/rails-footnotes.gemspec +0 -46
@@ -0,0 +1,120 @@
|
|
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>Class: Footnotes::Notes::ParamsComponentNote</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>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">Footnotes::Notes::ParamsComponentNote</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/lib/rails-footnotes/notes/components_note_rb.html">
|
59
|
+
lib/rails-footnotes/notes/components_note.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
<a href="ParamsNote.html">
|
69
|
+
ParamsNote
|
70
|
+
</a>
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
<!-- banner header -->
|
76
|
+
|
77
|
+
<div id="bodyContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div id="contextContent">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
|
88
|
+
</div>
|
89
|
+
|
90
|
+
|
91
|
+
<!-- if includes -->
|
92
|
+
<div id="includes">
|
93
|
+
<h3 class="section-bar">Included Modules</h3>
|
94
|
+
|
95
|
+
<div id="includes-list">
|
96
|
+
<span class="include-name"><a href="ComponentsNote.html">ComponentsNote</a></span>
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
<div id="section">
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<!-- if method_list -->
|
110
|
+
|
111
|
+
|
112
|
+
</div>
|
113
|
+
|
114
|
+
|
115
|
+
<div id="validator-badges">
|
116
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
117
|
+
</div>
|
118
|
+
|
119
|
+
</body>
|
120
|
+
</html>
|
@@ -0,0 +1,198 @@
|
|
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>Class: Footnotes::Notes::ParamsNote</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>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">Footnotes::Notes::ParamsNote</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/lib/rails-footnotes/notes/params_note_rb.html">
|
59
|
+
lib/rails-footnotes/notes/params_note.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
<a href="AbstractNote.html">
|
69
|
+
AbstractNote
|
70
|
+
</a>
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
<!-- banner header -->
|
76
|
+
|
77
|
+
<div id="bodyContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div id="contextContent">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div id="method-list">
|
88
|
+
<h3 class="section-bar">Methods</h3>
|
89
|
+
|
90
|
+
<div class="name-list">
|
91
|
+
<a href="#M000055">content</a>
|
92
|
+
<a href="#M000053">new</a>
|
93
|
+
<a href="#M000054">title</a>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
|
97
|
+
</div>
|
98
|
+
|
99
|
+
|
100
|
+
<!-- if includes -->
|
101
|
+
|
102
|
+
<div id="section">
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
<!-- if method_list -->
|
112
|
+
<div id="methods">
|
113
|
+
<h3 class="section-bar">Public Class methods</h3>
|
114
|
+
|
115
|
+
<div id="method-M000053" class="method-detail">
|
116
|
+
<a name="M000053"></a>
|
117
|
+
|
118
|
+
<div class="method-heading">
|
119
|
+
<a href="#M000053" class="method-signature">
|
120
|
+
<span class="method-name">new</span><span class="method-args">(controller)</span>
|
121
|
+
</a>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<div class="method-description">
|
125
|
+
<p><a class="source-toggle" href="#"
|
126
|
+
onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
|
127
|
+
<div class="method-source-code" id="M000053-source">
|
128
|
+
<pre>
|
129
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/params_note.rb, line 6</span>
|
130
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">controller</span>)
|
131
|
+
<span class="ruby-ivar">@params</span> = <span class="ruby-identifier">controller</span>.<span class="ruby-identifier">params</span>.<span class="ruby-identifier">symbolize_keys</span>
|
132
|
+
<span class="ruby-keyword kw">end</span>
|
133
|
+
</pre>
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
</div>
|
137
|
+
|
138
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
139
|
+
|
140
|
+
<div id="method-M000055" class="method-detail">
|
141
|
+
<a name="M000055"></a>
|
142
|
+
|
143
|
+
<div class="method-heading">
|
144
|
+
<a href="#M000055" class="method-signature">
|
145
|
+
<span class="method-name">content</span><span class="method-args">()</span>
|
146
|
+
</a>
|
147
|
+
</div>
|
148
|
+
|
149
|
+
<div class="method-description">
|
150
|
+
<p><a class="source-toggle" href="#"
|
151
|
+
onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
|
152
|
+
<div class="method-source-code" id="M000055-source">
|
153
|
+
<pre>
|
154
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/params_note.rb, line 14</span>
|
155
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">content</span>
|
156
|
+
<span class="ruby-identifier">escape</span>(<span class="ruby-ivar">@params</span>.<span class="ruby-identifier">inspect</span>)
|
157
|
+
<span class="ruby-keyword kw">end</span>
|
158
|
+
</pre>
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
</div>
|
162
|
+
|
163
|
+
<div id="method-M000054" class="method-detail">
|
164
|
+
<a name="M000054"></a>
|
165
|
+
|
166
|
+
<div class="method-heading">
|
167
|
+
<a href="#M000054" class="method-signature">
|
168
|
+
<span class="method-name">title</span><span class="method-args">()</span>
|
169
|
+
</a>
|
170
|
+
</div>
|
171
|
+
|
172
|
+
<div class="method-description">
|
173
|
+
<p><a class="source-toggle" href="#"
|
174
|
+
onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
|
175
|
+
<div class="method-source-code" id="M000054-source">
|
176
|
+
<pre>
|
177
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/params_note.rb, line 10</span>
|
178
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">title</span>
|
179
|
+
<span class="ruby-node">"Params (#{@params.length})"</span>
|
180
|
+
<span class="ruby-keyword kw">end</span>
|
181
|
+
</pre>
|
182
|
+
</div>
|
183
|
+
</div>
|
184
|
+
</div>
|
185
|
+
|
186
|
+
|
187
|
+
</div>
|
188
|
+
|
189
|
+
|
190
|
+
</div>
|
191
|
+
|
192
|
+
|
193
|
+
<div id="validator-badges">
|
194
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
195
|
+
</div>
|
196
|
+
|
197
|
+
</body>
|
198
|
+
</html>
|
@@ -0,0 +1,384 @@
|
|
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>Class: Footnotes::Notes::QueriesNote</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>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">Footnotes::Notes::QueriesNote</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/lib/rails-footnotes/notes/queries_note_rb.html">
|
59
|
+
lib/rails-footnotes/notes/queries_note.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
<a href="AbstractNote.html">
|
69
|
+
AbstractNote
|
70
|
+
</a>
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
<!-- banner header -->
|
76
|
+
|
77
|
+
<div id="bodyContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div id="contextContent">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div id="method-list">
|
88
|
+
<h3 class="section-bar">Methods</h3>
|
89
|
+
|
90
|
+
<div class="name-list">
|
91
|
+
<a href="#M000047">content</a>
|
92
|
+
<a href="#M000048">parse_explain</a>
|
93
|
+
<a href="#M000049">parse_trace</a>
|
94
|
+
<a href="#M000052">print_explain</a>
|
95
|
+
<a href="#M000050">print_name_and_time</a>
|
96
|
+
<a href="#M000051">print_query</a>
|
97
|
+
<a href="#M000043">start!</a>
|
98
|
+
<a href="#M000046">stylesheet</a>
|
99
|
+
<a href="#M000045">title</a>
|
100
|
+
<a href="#M000044">to_sym</a>
|
101
|
+
</div>
|
102
|
+
</div>
|
103
|
+
|
104
|
+
</div>
|
105
|
+
|
106
|
+
|
107
|
+
<!-- if includes -->
|
108
|
+
|
109
|
+
<div id="section">
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
<!-- if method_list -->
|
119
|
+
<div id="methods">
|
120
|
+
<h3 class="section-bar">Public Class methods</h3>
|
121
|
+
|
122
|
+
<div id="method-M000043" class="method-detail">
|
123
|
+
<a name="M000043"></a>
|
124
|
+
|
125
|
+
<div class="method-heading">
|
126
|
+
<a href="#M000043" class="method-signature">
|
127
|
+
<span class="method-name">start!</span><span class="method-args">(controller)</span>
|
128
|
+
</a>
|
129
|
+
</div>
|
130
|
+
|
131
|
+
<div class="method-description">
|
132
|
+
<p><a class="source-toggle" href="#"
|
133
|
+
onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
|
134
|
+
<div class="method-source-code" id="M000043-source">
|
135
|
+
<pre>
|
136
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/queries_note.rb, line 9</span>
|
137
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">start!</span>(<span class="ruby-identifier">controller</span>)
|
138
|
+
<span class="ruby-ivar">@@sql</span> = []
|
139
|
+
<span class="ruby-keyword kw">end</span>
|
140
|
+
</pre>
|
141
|
+
</div>
|
142
|
+
</div>
|
143
|
+
</div>
|
144
|
+
|
145
|
+
<div id="method-M000044" class="method-detail">
|
146
|
+
<a name="M000044"></a>
|
147
|
+
|
148
|
+
<div class="method-heading">
|
149
|
+
<a href="#M000044" class="method-signature">
|
150
|
+
<span class="method-name">to_sym</span><span class="method-args">()</span>
|
151
|
+
</a>
|
152
|
+
</div>
|
153
|
+
|
154
|
+
<div class="method-description">
|
155
|
+
<p><a class="source-toggle" href="#"
|
156
|
+
onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
|
157
|
+
<div class="method-source-code" id="M000044-source">
|
158
|
+
<pre>
|
159
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/queries_note.rb, line 13</span>
|
160
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_sym</span>
|
161
|
+
<span class="ruby-identifier">:queries</span>
|
162
|
+
<span class="ruby-keyword kw">end</span>
|
163
|
+
</pre>
|
164
|
+
</div>
|
165
|
+
</div>
|
166
|
+
</div>
|
167
|
+
|
168
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
169
|
+
|
170
|
+
<div id="method-M000047" class="method-detail">
|
171
|
+
<a name="M000047"></a>
|
172
|
+
|
173
|
+
<div class="method-heading">
|
174
|
+
<a href="#M000047" class="method-signature">
|
175
|
+
<span class="method-name">content</span><span class="method-args">()</span>
|
176
|
+
</a>
|
177
|
+
</div>
|
178
|
+
|
179
|
+
<div class="method-description">
|
180
|
+
<p><a class="source-toggle" href="#"
|
181
|
+
onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
|
182
|
+
<div class="method-source-code" id="M000047-source">
|
183
|
+
<pre>
|
184
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/queries_note.rb, line 31</span>
|
185
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">content</span>
|
186
|
+
<span class="ruby-identifier">html</span> = <span class="ruby-value str">''</span>
|
187
|
+
|
188
|
+
<span class="ruby-ivar">@@sql</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
189
|
+
<span class="ruby-identifier">sql_links</span> = []
|
190
|
+
<span class="ruby-identifier">sql_links</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"<a href=\"#\" style=\"color:#A00;\" onclick=\"Footnotes.toggle('qtable_#{i}');return false\">explain</a>"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">item</span>.<span class="ruby-identifier">explain</span>
|
191
|
+
<span class="ruby-identifier">sql_links</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"<a href=\"#\" style=\"color:#00A;\" onclick=\"Footnotes.toggle('qtrace_#{i}');return false\">trace</a>"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">item</span>.<span class="ruby-identifier">trace</span>
|
192
|
+
|
193
|
+
<span class="ruby-identifier">html</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"<b id=\"qtitle_\#{i}\">\#{escape(item.type.to_s.upcase)}</b> (\#{sql_links.join(' | ')})<br />\n\#{print_name_and_time(item.name, item.time)}<br />\n\#{print_query(item.query)}<br />\n\#{print_explain(i, item.explain) if item.explain}\n<p id=\"qtrace_\#{i}\" style=\"display:none;\">\#{parse_trace(item.trace) if item.trace}</p><br />\n"</span>
|
194
|
+
<span class="ruby-keyword kw">end</span>
|
195
|
+
|
196
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">html</span>
|
197
|
+
<span class="ruby-keyword kw">end</span>
|
198
|
+
</pre>
|
199
|
+
</div>
|
200
|
+
</div>
|
201
|
+
</div>
|
202
|
+
|
203
|
+
<div id="method-M000046" class="method-detail">
|
204
|
+
<a name="M000046"></a>
|
205
|
+
|
206
|
+
<div class="method-heading">
|
207
|
+
<a href="#M000046" class="method-signature">
|
208
|
+
<span class="method-name">stylesheet</span><span class="method-args">()</span>
|
209
|
+
</a>
|
210
|
+
</div>
|
211
|
+
|
212
|
+
<div class="method-description">
|
213
|
+
<p><a class="source-toggle" href="#"
|
214
|
+
onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
|
215
|
+
<div class="method-source-code" id="M000046-source">
|
216
|
+
<pre>
|
217
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/queries_note.rb, line 21</span>
|
218
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stylesheet</span>
|
219
|
+
<span class="ruby-value str">"#queries_debug_info table td, #queries_debug_info table th{border:1px solid #A00; padding:0 3px; text-align:center;}\n#queries_debug_info table thead, #queries_debug_info table tbody {color:#A00;}\n#queries_debug_info p {background-color:#F3F3FF; border:1px solid #CCC; margin:12px; padding:4px 6px;}\n#queries_debug_info a:hover {text-decoration:underline;}\n"</span>
|
220
|
+
<span class="ruby-keyword kw">end</span>
|
221
|
+
</pre>
|
222
|
+
</div>
|
223
|
+
</div>
|
224
|
+
</div>
|
225
|
+
|
226
|
+
<div id="method-M000045" class="method-detail">
|
227
|
+
<a name="M000045"></a>
|
228
|
+
|
229
|
+
<div class="method-heading">
|
230
|
+
<a href="#M000045" class="method-signature">
|
231
|
+
<span class="method-name">title</span><span class="method-args">()</span>
|
232
|
+
</a>
|
233
|
+
</div>
|
234
|
+
|
235
|
+
<div class="method-description">
|
236
|
+
<p><a class="source-toggle" href="#"
|
237
|
+
onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
|
238
|
+
<div class="method-source-code" id="M000045-source">
|
239
|
+
<pre>
|
240
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/queries_note.rb, line 17</span>
|
241
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">title</span>
|
242
|
+
<span class="ruby-node">"Queries (#{@@sql.length})"</span>
|
243
|
+
<span class="ruby-keyword kw">end</span>
|
244
|
+
</pre>
|
245
|
+
</div>
|
246
|
+
</div>
|
247
|
+
</div>
|
248
|
+
|
249
|
+
<h3 class="section-bar">Protected Instance methods</h3>
|
250
|
+
|
251
|
+
<div id="method-M000048" class="method-detail">
|
252
|
+
<a name="M000048"></a>
|
253
|
+
|
254
|
+
<div class="method-heading">
|
255
|
+
<a href="#M000048" class="method-signature">
|
256
|
+
<span class="method-name">parse_explain</span><span class="method-args">(results)</span>
|
257
|
+
</a>
|
258
|
+
</div>
|
259
|
+
|
260
|
+
<div class="method-description">
|
261
|
+
<p><a class="source-toggle" href="#"
|
262
|
+
onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
|
263
|
+
<div class="method-source-code" id="M000048-source">
|
264
|
+
<pre>
|
265
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/queries_note.rb, line 53</span>
|
266
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_explain</span>(<span class="ruby-identifier">results</span>)
|
267
|
+
<span class="ruby-identifier">table</span> = []
|
268
|
+
<span class="ruby-identifier">table</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">results</span>.<span class="ruby-identifier">fetch_fields</span>.<span class="ruby-identifier">map</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">:name</span>)
|
269
|
+
<span class="ruby-identifier">results</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">row</span><span class="ruby-operator">|</span> <span class="ruby-identifier">table</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">row</span>}
|
270
|
+
<span class="ruby-identifier">table</span>
|
271
|
+
<span class="ruby-keyword kw">end</span>
|
272
|
+
</pre>
|
273
|
+
</div>
|
274
|
+
</div>
|
275
|
+
</div>
|
276
|
+
|
277
|
+
<div id="method-M000049" class="method-detail">
|
278
|
+
<a name="M000049"></a>
|
279
|
+
|
280
|
+
<div class="method-heading">
|
281
|
+
<a href="#M000049" class="method-signature">
|
282
|
+
<span class="method-name">parse_trace</span><span class="method-args">(trace)</span>
|
283
|
+
</a>
|
284
|
+
</div>
|
285
|
+
|
286
|
+
<div class="method-description">
|
287
|
+
<p><a class="source-toggle" href="#"
|
288
|
+
onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
|
289
|
+
<div class="method-source-code" id="M000049-source">
|
290
|
+
<pre>
|
291
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/queries_note.rb, line 60</span>
|
292
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_trace</span>(<span class="ruby-identifier">trace</span>)
|
293
|
+
<span class="ruby-identifier">trace</span>.<span class="ruby-identifier">map</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
|
294
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-identifier">t</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">':'</span>)
|
295
|
+
<span class="ruby-node">%[<a href="#{escape(Footnotes::Filter.prefix("#{RAILS_ROOT}/#{s[0]}", s[1].to_i, 1))}">#{escape(t)}</a><br />]</span>
|
296
|
+
<span class="ruby-keyword kw">end</span>.<span class="ruby-identifier">join</span>
|
297
|
+
<span class="ruby-keyword kw">end</span>
|
298
|
+
</pre>
|
299
|
+
</div>
|
300
|
+
</div>
|
301
|
+
</div>
|
302
|
+
|
303
|
+
<div id="method-M000052" class="method-detail">
|
304
|
+
<a name="M000052"></a>
|
305
|
+
|
306
|
+
<div class="method-heading">
|
307
|
+
<a href="#M000052" class="method-signature">
|
308
|
+
<span class="method-name">print_explain</span><span class="method-args">(i, explain)</span>
|
309
|
+
</a>
|
310
|
+
</div>
|
311
|
+
|
312
|
+
<div class="method-description">
|
313
|
+
<p><a class="source-toggle" href="#"
|
314
|
+
onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
|
315
|
+
<div class="method-source-code" id="M000052-source">
|
316
|
+
<pre>
|
317
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/queries_note.rb, line 75</span>
|
318
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_explain</span>(<span class="ruby-identifier">i</span>, <span class="ruby-identifier">explain</span>)
|
319
|
+
<span class="ruby-identifier">mount_table</span>(<span class="ruby-identifier">parse_explain</span>(<span class="ruby-identifier">explain</span>), <span class="ruby-identifier">:id</span> =<span class="ruby-operator">></span> <span class="ruby-node">"qtable_#{i}"</span>, <span class="ruby-identifier">:style</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'margin:10px;display:none;'</span>)
|
320
|
+
<span class="ruby-keyword kw">end</span>
|
321
|
+
</pre>
|
322
|
+
</div>
|
323
|
+
</div>
|
324
|
+
</div>
|
325
|
+
|
326
|
+
<div id="method-M000050" class="method-detail">
|
327
|
+
<a name="M000050"></a>
|
328
|
+
|
329
|
+
<div class="method-heading">
|
330
|
+
<a href="#M000050" class="method-signature">
|
331
|
+
<span class="method-name">print_name_and_time</span><span class="method-args">(name, time)</span>
|
332
|
+
</a>
|
333
|
+
</div>
|
334
|
+
|
335
|
+
<div class="method-description">
|
336
|
+
<p><a class="source-toggle" href="#"
|
337
|
+
onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
|
338
|
+
<div class="method-source-code" id="M000050-source">
|
339
|
+
<pre>
|
340
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/queries_note.rb, line 67</span>
|
341
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_name_and_time</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">time</span>)
|
342
|
+
<span class="ruby-node">"#{escape(name || 'SQL')} (#{sprintf('%f', time)}s)"</span>
|
343
|
+
<span class="ruby-keyword kw">end</span>
|
344
|
+
</pre>
|
345
|
+
</div>
|
346
|
+
</div>
|
347
|
+
</div>
|
348
|
+
|
349
|
+
<div id="method-M000051" class="method-detail">
|
350
|
+
<a name="M000051"></a>
|
351
|
+
|
352
|
+
<div class="method-heading">
|
353
|
+
<a href="#M000051" class="method-signature">
|
354
|
+
<span class="method-name">print_query</span><span class="method-args">(query)</span>
|
355
|
+
</a>
|
356
|
+
</div>
|
357
|
+
|
358
|
+
<div class="method-description">
|
359
|
+
<p><a class="source-toggle" href="#"
|
360
|
+
onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
|
361
|
+
<div class="method-source-code" id="M000051-source">
|
362
|
+
<pre>
|
363
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/queries_note.rb, line 71</span>
|
364
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_query</span>(<span class="ruby-identifier">query</span>)
|
365
|
+
<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">query</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/(\s)+/</span>, <span class="ruby-value str">' '</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'`'</span>, <span class="ruby-value str">''</span>))
|
366
|
+
<span class="ruby-keyword kw">end</span>
|
367
|
+
</pre>
|
368
|
+
</div>
|
369
|
+
</div>
|
370
|
+
</div>
|
371
|
+
|
372
|
+
|
373
|
+
</div>
|
374
|
+
|
375
|
+
|
376
|
+
</div>
|
377
|
+
|
378
|
+
|
379
|
+
<div id="validator-badges">
|
380
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
381
|
+
</div>
|
382
|
+
|
383
|
+
</body>
|
384
|
+
</html>
|