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.
Files changed (66) hide show
  1. data/VERSION +1 -0
  2. data/pkg/scharfie-rails-footnotes-3.4.2.gem +0 -0
  3. data/rdoc/classes/ActionController.html +107 -0
  4. data/rdoc/classes/ActionController/Base.html +119 -0
  5. data/rdoc/classes/Footnotes.html +186 -0
  6. data/rdoc/classes/Footnotes/Components.html +211 -0
  7. data/rdoc/classes/Footnotes/Extensions.html +128 -0
  8. data/rdoc/classes/Footnotes/Extensions/AbstractAdapter.html +148 -0
  9. data/rdoc/classes/Footnotes/Extensions/Exception.html +205 -0
  10. data/rdoc/classes/Footnotes/Extensions/MockController.html +111 -0
  11. data/rdoc/classes/Footnotes/Extensions/QueryAnalyzer.html +183 -0
  12. data/rdoc/classes/Footnotes/Extensions/Routes.html +148 -0
  13. data/rdoc/classes/Footnotes/Extensions/Sql.html +191 -0
  14. data/rdoc/classes/Footnotes/Filter.html +928 -0
  15. data/rdoc/classes/Footnotes/Notes.html +194 -0
  16. data/rdoc/classes/Footnotes/Notes/AbstractNote.html +698 -0
  17. data/rdoc/classes/Footnotes/Notes/ComponentsNote.html +221 -0
  18. data/rdoc/classes/Footnotes/Notes/ComponentsNote/ClassMethods.html +164 -0
  19. data/rdoc/classes/Footnotes/Notes/ControllerComponentNote.html +120 -0
  20. data/rdoc/classes/Footnotes/Notes/ControllerNote.html +361 -0
  21. data/rdoc/classes/Footnotes/Notes/CookiesNote.html +198 -0
  22. data/rdoc/classes/Footnotes/Notes/EnvNote.html +178 -0
  23. data/rdoc/classes/Footnotes/Notes/FilesNote.html +284 -0
  24. data/rdoc/classes/Footnotes/Notes/FiltersNote.html +291 -0
  25. data/rdoc/classes/Footnotes/Notes/GeneralNote.html +196 -0
  26. data/rdoc/classes/Footnotes/Notes/JavascriptsNote.html +174 -0
  27. data/rdoc/classes/Footnotes/Notes/LayoutNote.html +248 -0
  28. data/rdoc/classes/Footnotes/Notes/LogNote.html +216 -0
  29. data/rdoc/classes/Footnotes/Notes/ParamsComponentNote.html +120 -0
  30. data/rdoc/classes/Footnotes/Notes/ParamsNote.html +198 -0
  31. data/rdoc/classes/Footnotes/Notes/QueriesNote.html +384 -0
  32. data/rdoc/classes/Footnotes/Notes/RoutesNote.html +240 -0
  33. data/rdoc/classes/Footnotes/Notes/SessionNote.html +174 -0
  34. data/rdoc/classes/Footnotes/Notes/StylesheetsNote.html +174 -0
  35. data/rdoc/classes/Footnotes/Notes/ViewComponentNote.html +120 -0
  36. data/rdoc/classes/Footnotes/Notes/ViewNote.html +273 -0
  37. data/rdoc/created.rid +1 -0
  38. data/rdoc/files/README.html +118 -0
  39. data/rdoc/files/lib/rails-footnotes/backtracer_rb.html +101 -0
  40. data/rdoc/files/lib/rails-footnotes/footnotes_rb.html +101 -0
  41. data/rdoc/files/lib/rails-footnotes/notes/abstract_note_rb.html +101 -0
  42. data/rdoc/files/lib/rails-footnotes/notes/components_note_rb.html +101 -0
  43. data/rdoc/files/lib/rails-footnotes/notes/controller_note_rb.html +101 -0
  44. data/rdoc/files/lib/rails-footnotes/notes/cookies_note_rb.html +101 -0
  45. data/rdoc/files/lib/rails-footnotes/notes/env_note_rb.html +101 -0
  46. data/rdoc/files/lib/rails-footnotes/notes/files_note_rb.html +101 -0
  47. data/rdoc/files/lib/rails-footnotes/notes/filters_note_rb.html +101 -0
  48. data/rdoc/files/lib/rails-footnotes/notes/general_note_rb.html +101 -0
  49. data/rdoc/files/lib/rails-footnotes/notes/javascripts_note_rb.html +101 -0
  50. data/rdoc/files/lib/rails-footnotes/notes/layout_note_rb.html +101 -0
  51. data/rdoc/files/lib/rails-footnotes/notes/log_note_rb.html +101 -0
  52. data/rdoc/files/lib/rails-footnotes/notes/params_note_rb.html +101 -0
  53. data/rdoc/files/lib/rails-footnotes/notes/queries_note_rb.html +101 -0
  54. data/rdoc/files/lib/rails-footnotes/notes/routes_note_rb.html +101 -0
  55. data/rdoc/files/lib/rails-footnotes/notes/session_note_rb.html +101 -0
  56. data/rdoc/files/lib/rails-footnotes/notes/stylesheets_note_rb.html +101 -0
  57. data/rdoc/files/lib/rails-footnotes/notes/view_note_rb.html +101 -0
  58. data/rdoc/files/lib/rails-footnotes_rb.html +101 -0
  59. data/rdoc/fr_class_index.html +60 -0
  60. data/rdoc/fr_file_index.html +47 -0
  61. data/rdoc/fr_method_index.html +156 -0
  62. data/rdoc/index.html +24 -0
  63. data/rdoc/rdoc-style.css +208 -0
  64. data/scharfie-rails-footnotes.gemspec +142 -0
  65. metadata +66 -3
  66. data/rails-footnotes.gemspec +0 -46
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.5.0
@@ -0,0 +1,107 @@
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: ActionController</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">ActionController</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ </td>
59
+ </tr>
60
+
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
+ <div id="class-list">
84
+ <h3 class="section-bar">Classes and Modules</h3>
85
+
86
+ Class <a href="ActionController/Base.html" class="link">ActionController::Base</a><br />
87
+
88
+ </div>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <!-- if method_list -->
97
+
98
+
99
+ </div>
100
+
101
+
102
+ <div id="validator-badges">
103
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
104
+ </div>
105
+
106
+ </body>
107
+ </html>
@@ -0,0 +1,119 @@
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: ActionController::Base</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">ActionController::Base</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/rails-footnotes_rb.html">
59
+ lib/rails-footnotes.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
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+ <div id="description">
82
+ <p>
83
+ The footnotes are applied by default to all actions. You can change this
84
+ behavior commenting the after_filter line below and putting it in Your
85
+ application. Then you can cherrypick in which actions it will appear.
86
+ </p>
87
+
88
+ </div>
89
+
90
+
91
+ </div>
92
+
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
+
110
+
111
+ </div>
112
+
113
+
114
+ <div id="validator-badges">
115
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
116
+ </div>
117
+
118
+ </body>
119
+ </html>
@@ -0,0 +1,186 @@
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: Footnotes</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">Footnotes</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/rails-footnotes/backtracer_rb.html">
59
+ lib/rails-footnotes/backtracer.rb
60
+ </a>
61
+ <br />
62
+ <a href="../files/lib/rails-footnotes/footnotes_rb.html">
63
+ lib/rails-footnotes/footnotes.rb
64
+ </a>
65
+ <br />
66
+ <a href="../files/lib/rails-footnotes/notes/abstract_note_rb.html">
67
+ lib/rails-footnotes/notes/abstract_note.rb
68
+ </a>
69
+ <br />
70
+ <a href="../files/lib/rails-footnotes/notes/components_note_rb.html">
71
+ lib/rails-footnotes/notes/components_note.rb
72
+ </a>
73
+ <br />
74
+ <a href="../files/lib/rails-footnotes/notes/controller_note_rb.html">
75
+ lib/rails-footnotes/notes/controller_note.rb
76
+ </a>
77
+ <br />
78
+ <a href="../files/lib/rails-footnotes/notes/cookies_note_rb.html">
79
+ lib/rails-footnotes/notes/cookies_note.rb
80
+ </a>
81
+ <br />
82
+ <a href="../files/lib/rails-footnotes/notes/env_note_rb.html">
83
+ lib/rails-footnotes/notes/env_note.rb
84
+ </a>
85
+ <br />
86
+ <a href="../files/lib/rails-footnotes/notes/files_note_rb.html">
87
+ lib/rails-footnotes/notes/files_note.rb
88
+ </a>
89
+ <br />
90
+ <a href="../files/lib/rails-footnotes/notes/filters_note_rb.html">
91
+ lib/rails-footnotes/notes/filters_note.rb
92
+ </a>
93
+ <br />
94
+ <a href="../files/lib/rails-footnotes/notes/general_note_rb.html">
95
+ lib/rails-footnotes/notes/general_note.rb
96
+ </a>
97
+ <br />
98
+ <a href="../files/lib/rails-footnotes/notes/javascripts_note_rb.html">
99
+ lib/rails-footnotes/notes/javascripts_note.rb
100
+ </a>
101
+ <br />
102
+ <a href="../files/lib/rails-footnotes/notes/layout_note_rb.html">
103
+ lib/rails-footnotes/notes/layout_note.rb
104
+ </a>
105
+ <br />
106
+ <a href="../files/lib/rails-footnotes/notes/log_note_rb.html">
107
+ lib/rails-footnotes/notes/log_note.rb
108
+ </a>
109
+ <br />
110
+ <a href="../files/lib/rails-footnotes/notes/params_note_rb.html">
111
+ lib/rails-footnotes/notes/params_note.rb
112
+ </a>
113
+ <br />
114
+ <a href="../files/lib/rails-footnotes/notes/queries_note_rb.html">
115
+ lib/rails-footnotes/notes/queries_note.rb
116
+ </a>
117
+ <br />
118
+ <a href="../files/lib/rails-footnotes/notes/routes_note_rb.html">
119
+ lib/rails-footnotes/notes/routes_note.rb
120
+ </a>
121
+ <br />
122
+ <a href="../files/lib/rails-footnotes/notes/session_note_rb.html">
123
+ lib/rails-footnotes/notes/session_note.rb
124
+ </a>
125
+ <br />
126
+ <a href="../files/lib/rails-footnotes/notes/stylesheets_note_rb.html">
127
+ lib/rails-footnotes/notes/stylesheets_note.rb
128
+ </a>
129
+ <br />
130
+ <a href="../files/lib/rails-footnotes/notes/view_note_rb.html">
131
+ lib/rails-footnotes/notes/view_note.rb
132
+ </a>
133
+ <br />
134
+ </td>
135
+ </tr>
136
+
137
+ </table>
138
+ </div>
139
+ <!-- banner header -->
140
+
141
+ <div id="bodyContent">
142
+
143
+
144
+
145
+ <div id="contextContent">
146
+
147
+
148
+
149
+ </div>
150
+
151
+
152
+ </div>
153
+
154
+
155
+ <!-- if includes -->
156
+
157
+ <div id="section">
158
+
159
+ <div id="class-list">
160
+ <h3 class="section-bar">Classes and Modules</h3>
161
+
162
+ Module <a href="Footnotes/Components.html" class="link">Footnotes::Components</a><br />
163
+ Module <a href="Footnotes/Extensions.html" class="link">Footnotes::Extensions</a><br />
164
+ Module <a href="Footnotes/Notes.html" class="link">Footnotes::Notes</a><br />
165
+ Class <a href="Footnotes/Filter.html" class="link">Footnotes::Filter</a><br />
166
+
167
+ </div>
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+ <!-- if method_list -->
176
+
177
+
178
+ </div>
179
+
180
+
181
+ <div id="validator-badges">
182
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
183
+ </div>
184
+
185
+ </body>
186
+ </html>
@@ -0,0 +1,211 @@
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: Footnotes::Components</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">Footnotes::Components</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
+ </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
+ <div id="method-list">
80
+ <h3 class="section-bar">Methods</h3>
81
+
82
+ <div class="name-list">
83
+ <a href="#M000002">add_footnotes_with_component!</a>&nbsp;&nbsp;
84
+ <a href="#M000001">included</a>&nbsp;&nbsp;
85
+ <a href="#M000003">initialize_component_notes!</a>&nbsp;&nbsp;
86
+ </div>
87
+ </div>
88
+
89
+ </div>
90
+
91
+
92
+ <!-- if includes -->
93
+
94
+ <div id="section">
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+ <!-- if method_list -->
104
+ <div id="methods">
105
+ <h3 class="section-bar">Public Class methods</h3>
106
+
107
+ <div id="method-M000001" class="method-detail">
108
+ <a name="M000001"></a>
109
+
110
+ <div class="method-heading">
111
+ <a href="#M000001" class="method-signature">
112
+ <span class="method-name">included</span><span class="method-args">(base)</span>
113
+ </a>
114
+ </div>
115
+
116
+ <div class="method-description">
117
+ <p><a class="source-toggle" href="#"
118
+ onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
119
+ <div class="method-source-code" id="M000001-source">
120
+ <pre>
121
+ <span class="ruby-comment cmt"># File lib/rails-footnotes/notes/components_note.rb, line 44</span>
122
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">base</span>)
123
+ <span class="ruby-identifier">base</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
124
+ <span class="ruby-identifier">alias_method_chain</span> <span class="ruby-identifier">:add_footnotes!</span>, <span class="ruby-identifier">:component</span>
125
+ <span class="ruby-constant">Footnotes</span><span class="ruby-operator">::</span><span class="ruby-constant">Filter</span>.<span class="ruby-identifier">notes</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:components</span>)
126
+ <span class="ruby-ivar">@@component_notes</span> = [ <span class="ruby-identifier">:controller</span>, <span class="ruby-identifier">:view</span>, <span class="ruby-identifier">:params</span> ]
127
+ <span class="ruby-keyword kw">end</span>
128
+ <span class="ruby-keyword kw">end</span>
129
+ </pre>
130
+ </div>
131
+ </div>
132
+ </div>
133
+
134
+ <h3 class="section-bar">Public Instance methods</h3>
135
+
136
+ <div id="method-M000002" class="method-detail">
137
+ <a name="M000002"></a>
138
+
139
+ <div class="method-heading">
140
+ <a href="#M000002" class="method-signature">
141
+ <span class="method-name">add_footnotes_with_component!</span><span class="method-args">()</span>
142
+ </a>
143
+ </div>
144
+
145
+ <div class="method-description">
146
+ <p><a class="source-toggle" href="#"
147
+ onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
148
+ <div class="method-source-code" id="M000002-source">
149
+ <pre>
150
+ <span class="ruby-comment cmt"># File lib/rails-footnotes/notes/components_note.rb, line 52</span>
151
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_footnotes_with_component!</span>
152
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">component_request?</span>
153
+ <span class="ruby-identifier">initialize_component_notes!</span>
154
+ <span class="ruby-constant">Footnotes</span><span class="ruby-operator">::</span><span class="ruby-constant">Filter</span>.<span class="ruby-identifier">notes</span>.<span class="ruby-identifier">unshift</span>(<span class="ruby-operator">*</span><span class="ruby-ivar">@notes</span>)
155
+ <span class="ruby-keyword kw">else</span>
156
+ <span class="ruby-identifier">add_footnotes_without_component!</span>
157
+ <span class="ruby-constant">Footnotes</span><span class="ruby-operator">::</span><span class="ruby-constant">Filter</span>.<span class="ruby-identifier">notes</span>.<span class="ruby-identifier">delete_if</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">note</span><span class="ruby-operator">|</span> <span class="ruby-identifier">note</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/(ComponentNote)$/</span>}
158
+ <span class="ruby-keyword kw">end</span>
159
+ <span class="ruby-keyword kw">end</span>
160
+ </pre>
161
+ </div>
162
+ </div>
163
+ </div>
164
+
165
+ <h3 class="section-bar">Protected Instance methods</h3>
166
+
167
+ <div id="method-M000003" class="method-detail">
168
+ <a name="M000003"></a>
169
+
170
+ <div class="method-heading">
171
+ <a href="#M000003" class="method-signature">
172
+ <span class="method-name">initialize_component_notes!</span><span class="method-args">()</span>
173
+ </a>
174
+ </div>
175
+
176
+ <div class="method-description">
177
+ <p><a class="source-toggle" href="#"
178
+ onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
179
+ <div class="method-source-code" id="M000003-source">
180
+ <pre>
181
+ <span class="ruby-comment cmt"># File lib/rails-footnotes/notes/components_note.rb, line 63</span>
182
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize_component_notes!</span>
183
+ <span class="ruby-ivar">@@component_notes</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">note</span><span class="ruby-operator">|</span>
184
+ <span class="ruby-keyword kw">begin</span>
185
+ <span class="ruby-identifier">note</span> = <span class="ruby-identifier">eval</span>(<span class="ruby-node">&quot;Footnotes::Notes::#{note.to_s.camelize}ComponentNote&quot;</span>).<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@controller</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">note</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Symbol</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">note</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>)
186
+ <span class="ruby-ivar">@notes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">note</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">note</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:valid?</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">note</span>.<span class="ruby-identifier">valid?</span>
187
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
188
+ <span class="ruby-comment cmt"># Discard note if it has a problem</span>
189
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">log_error</span>(<span class="ruby-node">&quot;Footnotes #{note.to_s.camelize}ComponentNote Exception&quot;</span>, <span class="ruby-identifier">e</span>)
190
+ <span class="ruby-keyword kw">next</span>
191
+ <span class="ruby-keyword kw">end</span>
192
+ <span class="ruby-keyword kw">end</span>
193
+ <span class="ruby-keyword kw">end</span>
194
+ </pre>
195
+ </div>
196
+ </div>
197
+ </div>
198
+
199
+
200
+ </div>
201
+
202
+
203
+ </div>
204
+
205
+
206
+ <div id="validator-badges">
207
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
208
+ </div>
209
+
210
+ </body>
211
+ </html>