mack-active_record 0.6.1.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/doc/classes/Mack/Database/Generators.html +140 -0
  2. data/doc/classes/Mack/Database/{Migrator.html → Migrations.html} +74 -39
  3. data/doc/classes/Mack/Database.html +158 -61
  4. data/doc/classes/Mack/Testing/ActiveRecordHelpers.html +168 -0
  5. data/doc/classes/Mack/ViewHelpers/ActiveRecordHelpers.html +52 -52
  6. data/doc/classes/Mack.html +8 -15
  7. data/doc/created.rid +1 -1
  8. data/doc/files/lib/mack-active_record/{genosaurus_helpers_rb.html → database_migrations_rb.html} +4 -4
  9. data/doc/files/lib/mack-active_record/database_rb.html +1 -11
  10. data/doc/files/lib/mack-active_record/{model_column_rb.html → generators_rb.html} +4 -4
  11. data/doc/files/lib/mack-active_record/helpers/orm_helpers_rb.html +1 -1
  12. data/doc/files/lib/mack-active_record/{scaffold_generator/scaffold_generator_rb.html → test_extensions_rb.html} +12 -17
  13. data/doc/files/lib/mack-active_record_rb.html +2 -1
  14. data/doc/files/lib/mack-active_record_tasks_rb.html +8 -1
  15. data/doc/fr_class_index.html +3 -5
  16. data/doc/fr_file_index.html +3 -3
  17. data/doc/fr_method_index.html +11 -14
  18. data/lib/mack-active_record/database.rb +81 -59
  19. data/lib/mack-active_record/database_migrations.rb +29 -0
  20. data/lib/mack-active_record/generators.rb +11 -0
  21. data/lib/mack-active_record/helpers/orm_helpers.rb +9 -12
  22. data/lib/mack-active_record/model_generator/manifest.yml +2 -2
  23. data/lib/mack-active_record/tasks/db_migration_tasks.rake +2 -15
  24. data/lib/mack-active_record/test_extensions.rb +101 -0
  25. data/lib/mack-active_record.rb +4 -3
  26. data/lib/mack-active_record_tasks.rb +1 -0
  27. metadata +22 -22
  28. data/doc/classes/Mack/Genosaurus/ActiveRecord/Helpers.html +0 -225
  29. data/doc/classes/Mack/Genosaurus/ActiveRecord/ModelColumn.html +0 -299
  30. data/doc/classes/Mack/ViewHelpers.html +0 -111
  31. data/doc/classes/ScaffoldGenerator.html +0 -123
  32. data/lib/mack-active_record/genosaurus_helpers.rb +0 -40
  33. data/lib/mack-active_record/model_column.rb +0 -55
  34. data/lib/mack-active_record/scaffold_generator/manifest.yml +0 -31
  35. data/lib/mack-active_record/scaffold_generator/scaffold_generator.rb +0 -42
  36. data/lib/mack-active_record/scaffold_generator/templates/app/views/edit.html.erb.template +0 -19
  37. data/lib/mack-active_record/scaffold_generator/templates/app/views/index.html.erb.template +0 -41
  38. data/lib/mack-active_record/scaffold_generator/templates/app/views/new.html.erb.template +0 -19
  39. data/lib/mack-active_record/scaffold_generator/templates/app/views/show.html.erb.template +0 -12
  40. data/lib/mack-active_record/scaffold_generator/templates/spec.rb.template +0 -47
  41. data/lib/mack-active_record/scaffold_generator/templates/test.rb.template +0 -9
  42. data/lib/mack-active_record/tasks/db_create_drop_tasks.rake +0 -52
@@ -100,7 +100,7 @@
100
100
  <tr class="top-aligned-row context-row">
101
101
  <td class="context-item-name">DEFAULT_PARTIAL</td>
102
102
  <td>=</td>
103
- <td class="context-item-value">%{ &lt;div&gt; &lt;div class=&quot;errorExplanation&quot; id=&quot;errorExplanation&quot;&gt; &lt;h2&gt;&lt;%= pluralize_word(errors.size, &quot;error&quot;) %&gt; occured.&lt;/h2&gt; &lt;ul&gt; &lt;% for error in errors %&gt; &lt;li&gt;&lt;%= error %&gt;&lt;/li&gt; &lt;% end %&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; }</td>
103
+ <td class="context-item-value">%{ &lt;div class=&quot;errorExplanation&quot; id=&quot;errorExplanation&quot;&gt; &lt;h2&gt;&lt;%= pluralize_word(errors.size, &quot;error&quot;) %&gt; occured.&lt;/h2&gt; &lt;ul&gt; &lt;% for error in errors %&gt; &lt;li&gt;&lt;%= error %&gt;&lt;/li&gt; &lt;% end %&gt; &lt;/ul&gt; &lt;/div&gt;}.strip unless Mack::ViewHelpers::ActiveRecordHelpers.const_defined?(&quot;DEFAULT_PARTIAL&quot;)</td>
104
104
  </tr>
105
105
  </table>
106
106
  </div>
@@ -129,57 +129,57 @@
129
129
  onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
130
130
  <div class="method-source-code" id="M000001-source">
131
131
  <pre>
132
- <span class="ruby-comment cmt"># File lib/mack-active_record/helpers/orm_helpers.rb, line 23</span>
133
- 23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">error_messages_for</span>(<span class="ruby-identifier">object_names</span> = [], <span class="ruby-identifier">view_partial</span> = <span class="ruby-keyword kw">nil</span>)
134
- 24: <span class="ruby-identifier">object_names</span> = [<span class="ruby-identifier">object_names</span>]
135
- 25: <span class="ruby-identifier">object_names</span>.<span class="ruby-identifier">flatten!</span>
136
- 26: <span class="ruby-identifier">app_errors</span> = []
137
- 27: <span class="ruby-identifier">object_names</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
138
- 28: <span class="ruby-identifier">object</span> = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">&quot;@#{name}&quot;</span>)
139
- 29: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">object</span>
140
- 30: <span class="ruby-identifier">object</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
141
- 31: <span class="ruby-identifier">key</span> = <span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>
142
- 32: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
143
- 33: <span class="ruby-identifier">value</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
144
- 34: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp re">/^\^/</span>)
145
- 35: <span class="ruby-identifier">app_errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">v</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-identifier">v</span>.<span class="ruby-identifier">length</span>]
146
- 36: <span class="ruby-keyword kw">else</span>
147
- 37: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">String</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">key</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;base&quot;</span>
148
- 38: <span class="ruby-identifier">app_errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{v}&quot;</span>
149
- 39: <span class="ruby-keyword kw">else</span>
150
- 40: <span class="ruby-identifier">app_errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{object.business_display_name} #{key.underscore.split('_').join(' ')} #{v}&quot;</span>
151
- 41: <span class="ruby-keyword kw">end</span>
152
- 42: <span class="ruby-keyword kw">end</span>
153
- 43: <span class="ruby-keyword kw">end</span>
154
- 44: <span class="ruby-keyword kw">else</span>
155
- 45: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp re">/^\^/</span>)
156
- 46: <span class="ruby-identifier">app_errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">value</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-identifier">value</span>.<span class="ruby-identifier">length</span>]
157
- 47: <span class="ruby-keyword kw">else</span>
158
- 48: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">String</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">key</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;base&quot;</span>
159
- 49: <span class="ruby-identifier">app_errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{value}&quot;</span>
160
- 50: <span class="ruby-keyword kw">else</span>
161
- 51: <span class="ruby-identifier">app_errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{object.business_display_name} #{key.underscore.split('_').join(' ')} #{value}&quot;</span>
162
- 52: <span class="ruby-keyword kw">end</span>
163
- 53: <span class="ruby-keyword kw">end</span>
164
- 54: <span class="ruby-keyword kw">end</span>
165
- 55: <span class="ruby-keyword kw">end</span>
166
- 56: <span class="ruby-keyword kw">end</span>
167
- 57: <span class="ruby-keyword kw">end</span>
168
- 58: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">app_errors</span>.<span class="ruby-identifier">empty?</span>
169
- 59: <span class="ruby-identifier">app_errors</span>.<span class="ruby-identifier">uniq!</span>
170
- 60: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">view_partial</span>.<span class="ruby-identifier">nil?</span>
171
- 61: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">Mack</span>.<span class="ruby-identifier">root</span>, <span class="ruby-value str">&quot;app&quot;</span>, <span class="ruby-value str">&quot;views&quot;</span>, <span class="ruby-value str">&quot;application&quot;</span>, <span class="ruby-value str">&quot;_error_messages.html.erb&quot;</span>))
172
- 62: <span class="ruby-identifier">render</span>(<span class="ruby-identifier">:partial</span>, <span class="ruby-value str">&quot;application/error_messages&quot;</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-identifier">:errors</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">app_errors</span>})
173
- 63: <span class="ruby-keyword kw">else</span>
174
- 64: <span class="ruby-identifier">render</span>(<span class="ruby-identifier">:inline</span>, <span class="ruby-constant">DEFAULT_PARTIAL</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-identifier">:errors</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">app_errors</span>})
175
- 65: <span class="ruby-keyword kw">end</span>
176
- 66: <span class="ruby-keyword kw">else</span>
177
- 67: <span class="ruby-identifier">render</span>(<span class="ruby-identifier">:partial</span>, <span class="ruby-identifier">view_partial</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-identifier">:errors</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">app_errors</span>})
178
- 68: <span class="ruby-keyword kw">end</span>
179
- 69: <span class="ruby-keyword kw">else</span>
180
- 70: <span class="ruby-value str">&quot;&quot;</span>
181
- 71: <span class="ruby-keyword kw">end</span>
182
- 72: <span class="ruby-keyword kw">end</span>
132
+ <span class="ruby-comment cmt"># File lib/mack-active_record/helpers/orm_helpers.rb, line 20</span>
133
+ 20: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">error_messages_for</span>(<span class="ruby-identifier">object_names</span> = [], <span class="ruby-identifier">view_partial</span> = <span class="ruby-keyword kw">nil</span>)
134
+ 21: <span class="ruby-identifier">object_names</span> = [<span class="ruby-identifier">object_names</span>]
135
+ 22: <span class="ruby-identifier">object_names</span>.<span class="ruby-identifier">flatten!</span>
136
+ 23: <span class="ruby-identifier">app_errors</span> = []
137
+ 24: <span class="ruby-identifier">object_names</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
138
+ 25: <span class="ruby-identifier">object</span> = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">&quot;@#{name}&quot;</span>)
139
+ 26: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">object</span>
140
+ 27: <span class="ruby-identifier">object</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
141
+ 28: <span class="ruby-identifier">key</span> = <span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>
142
+ 29: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
143
+ 30: <span class="ruby-identifier">value</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
144
+ 31: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp re">/^\^/</span>)
145
+ 32: <span class="ruby-identifier">app_errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">v</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-identifier">v</span>.<span class="ruby-identifier">length</span>]
146
+ 33: <span class="ruby-keyword kw">else</span>
147
+ 34: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">String</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">key</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;base&quot;</span>
148
+ 35: <span class="ruby-identifier">app_errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{v}&quot;</span>
149
+ 36: <span class="ruby-keyword kw">else</span>
150
+ 37: <span class="ruby-identifier">app_errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{object.business_display_name} #{key.underscore.split('_').join(' ')} #{v}&quot;</span>
151
+ 38: <span class="ruby-keyword kw">end</span>
152
+ 39: <span class="ruby-keyword kw">end</span>
153
+ 40: <span class="ruby-keyword kw">end</span>
154
+ 41: <span class="ruby-keyword kw">else</span>
155
+ 42: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp re">/^\^/</span>)
156
+ 43: <span class="ruby-identifier">app_errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">value</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-identifier">value</span>.<span class="ruby-identifier">length</span>]
157
+ 44: <span class="ruby-keyword kw">else</span>
158
+ 45: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">String</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">key</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;base&quot;</span>
159
+ 46: <span class="ruby-identifier">app_errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{value}&quot;</span>
160
+ 47: <span class="ruby-keyword kw">else</span>
161
+ 48: <span class="ruby-identifier">app_errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{object.business_display_name} #{key.underscore.split('_').join(' ')} #{value}&quot;</span>
162
+ 49: <span class="ruby-keyword kw">end</span>
163
+ 50: <span class="ruby-keyword kw">end</span>
164
+ 51: <span class="ruby-keyword kw">end</span>
165
+ 52: <span class="ruby-keyword kw">end</span>
166
+ 53: <span class="ruby-keyword kw">end</span>
167
+ 54: <span class="ruby-keyword kw">end</span>
168
+ 55: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">app_errors</span>.<span class="ruby-identifier">empty?</span>
169
+ 56: <span class="ruby-identifier">app_errors</span>.<span class="ruby-identifier">uniq!</span>
170
+ 57: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">view_partial</span>.<span class="ruby-identifier">nil?</span>
171
+ 58: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">Mack</span>.<span class="ruby-identifier">root</span>, <span class="ruby-value str">&quot;app&quot;</span>, <span class="ruby-value str">&quot;views&quot;</span>, <span class="ruby-value str">&quot;application&quot;</span>, <span class="ruby-value str">&quot;_error_messages.html.erb&quot;</span>))
172
+ 59: <span class="ruby-identifier">render</span>(<span class="ruby-identifier">:partial</span>, <span class="ruby-value str">&quot;application/error_messages&quot;</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-identifier">:errors</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">app_errors</span>})
173
+ 60: <span class="ruby-keyword kw">else</span>
174
+ 61: <span class="ruby-identifier">render</span>(<span class="ruby-identifier">:inline</span>, <span class="ruby-constant">DEFAULT_PARTIAL</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-identifier">:errors</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">app_errors</span>})
175
+ 62: <span class="ruby-keyword kw">end</span>
176
+ 63: <span class="ruby-keyword kw">else</span>
177
+ 64: <span class="ruby-identifier">render</span>(<span class="ruby-identifier">:partial</span>, <span class="ruby-identifier">view_partial</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-identifier">:errors</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">app_errors</span>})
178
+ 65: <span class="ruby-keyword kw">end</span>
179
+ 66: <span class="ruby-keyword kw">else</span>
180
+ 67: <span class="ruby-value str">&quot;&quot;</span>
181
+ 68: <span class="ruby-keyword kw">end</span>
182
+ 69: <span class="ruby-keyword kw">end</span>
183
183
  </pre>
184
184
  </div>
185
185
  </div>
@@ -59,16 +59,20 @@
59
59
  lib/mack-active_record/database.rb
60
60
  </a>
61
61
  <br />
62
- <a href="../files/lib/mack-active_record/genosaurus_helpers_rb.html">
63
- lib/mack-active_record/genosaurus_helpers.rb
62
+ <a href="../files/lib/mack-active_record/database_migrations_rb.html">
63
+ lib/mack-active_record/database_migrations.rb
64
+ </a>
65
+ <br />
66
+ <a href="../files/lib/mack-active_record/generators_rb.html">
67
+ lib/mack-active_record/generators.rb
64
68
  </a>
65
69
  <br />
66
70
  <a href="../files/lib/mack-active_record/helpers/orm_helpers_rb.html">
67
71
  lib/mack-active_record/helpers/orm_helpers.rb
68
72
  </a>
69
73
  <br />
70
- <a href="../files/lib/mack-active_record/model_column_rb.html">
71
- lib/mack-active_record/model_column.rb
74
+ <a href="../files/lib/mack-active_record/test_extensions_rb.html">
75
+ lib/mack-active_record/test_extensions.rb
72
76
  </a>
73
77
  <br />
74
78
  </td>
@@ -84,16 +88,6 @@
84
88
 
85
89
  <div id="contextContent">
86
90
 
87
- <div id="description">
88
- <p>
89
- AR db create/drop. Currently it supports 3 adapters: sqlite3, postgresql,
90
- and mysql
91
- </p>
92
- <p>
93
- ds - July 2008
94
- </p>
95
-
96
- </div>
97
91
 
98
92
 
99
93
  </div>
@@ -110,7 +104,6 @@ ds - July 2008
110
104
  <h3 class="section-bar">Classes and Modules</h3>
111
105
 
112
106
  Module <a href="Mack/Database.html" class="link">Mack::Database</a><br />
113
- Module <a href="Mack/ViewHelpers.html" class="link">Mack::ViewHelpers</a><br />
114
107
 
115
108
  </div>
116
109
 
data/doc/created.rid CHANGED
@@ -1 +1 @@
1
- Fri, 29 Aug 2008 11:16:18 -0400
1
+ Mon, 25 Aug 2008 11:24:18 -0400
@@ -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>File: genosaurus_helpers.rb</title>
8
+ <title>File: database_migrations.rb</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" />
@@ -47,16 +47,16 @@
47
47
 
48
48
 
49
49
  <div id="fileHeader">
50
- <h1>genosaurus_helpers.rb</h1>
50
+ <h1>database_migrations.rb</h1>
51
51
  <table class="header-table">
52
52
  <tr class="top-aligned-row">
53
53
  <td><strong>Path:</strong></td>
54
- <td>lib/mack-active_record/genosaurus_helpers.rb
54
+ <td>lib/mack-active_record/database_migrations.rb
55
55
  </td>
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Fri Aug 29 11:14:24 -0400 2008</td>
59
+ <td>Mon Aug 25 10:11:26 -0400 2008</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Fri Aug 29 11:14:24 -0400 2008</td>
59
+ <td>Mon Aug 25 10:11:26 -0400 2008</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -68,16 +68,6 @@
68
68
 
69
69
  <div id="contextContent">
70
70
 
71
- <div id="description">
72
- <p>
73
- AR db create/drop. Currently it supports 3 adapters: sqlite3, postgresql,
74
- and mysql
75
- </p>
76
- <p>
77
- ds - July 2008
78
- </p>
79
-
80
- </div>
81
71
 
82
72
 
83
73
  </div>
@@ -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>File: model_column.rb</title>
8
+ <title>File: generators.rb</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" />
@@ -47,16 +47,16 @@
47
47
 
48
48
 
49
49
  <div id="fileHeader">
50
- <h1>model_column.rb</h1>
50
+ <h1>generators.rb</h1>
51
51
  <table class="header-table">
52
52
  <tr class="top-aligned-row">
53
53
  <td><strong>Path:</strong></td>
54
- <td>lib/mack-active_record/model_column.rb
54
+ <td>lib/mack-active_record/generators.rb
55
55
  </td>
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Fri Aug 29 11:14:24 -0400 2008</td>
59
+ <td>Mon Aug 25 10:11:26 -0400 2008</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Fri Aug 29 11:14:24 -0400 2008</td>
59
+ <td>Mon Aug 25 10:11:39 -0400 2008</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -5,10 +5,10 @@
5
5
 
6
6
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
7
  <head>
8
- <title>File: scaffold_generator.rb</title>
8
+ <title>File: test_extensions.rb</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
- <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
12
  <script type="text/javascript">
13
13
  // <![CDATA[
14
14
 
@@ -47,16 +47,16 @@
47
47
 
48
48
 
49
49
  <div id="fileHeader">
50
- <h1>scaffold_generator.rb</h1>
50
+ <h1>test_extensions.rb</h1>
51
51
  <table class="header-table">
52
52
  <tr class="top-aligned-row">
53
53
  <td><strong>Path:</strong></td>
54
- <td>lib/mack-active_record/scaffold_generator/scaffold_generator.rb
54
+ <td>lib/mack-active_record/test_extensions.rb
55
55
  </td>
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Fri Aug 29 11:14:24 -0400 2008</td>
59
+ <td>Mon Aug 25 10:11:27 -0400 2008</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -68,20 +68,15 @@
68
68
 
69
69
  <div id="contextContent">
70
70
 
71
- <div id="description">
72
- <p>
73
- Generates scaffold for <a href="../../../../classes/Mack.html">Mack</a>
74
- applications.
75
- </p>
76
- <p>
77
- Example:
78
- </p>
79
- <pre>
80
- rake generate:scaffold name=post
81
- </pre>
82
71
 
83
- </div>
72
+ <div id="requires-list">
73
+ <h3 class="section-bar">Required files</h3>
84
74
 
75
+ <div class="name-list">
76
+ test/unit&nbsp;&nbsp;
77
+ spec&nbsp;&nbsp;
78
+ </div>
79
+ </div>
85
80
 
86
81
  </div>
87
82
 
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Fri Aug 29 11:14:24 -0400 2008</td>
59
+ <td>Mon Aug 25 10:11:26 -0400 2008</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -75,6 +75,7 @@
75
75
  <div class="name-list">
76
76
  rubygems&nbsp;&nbsp;
77
77
  genosaurus&nbsp;&nbsp;
78
+ mack-orm&nbsp;&nbsp;
78
79
  activerecord&nbsp;&nbsp;
79
80
  </div>
80
81
  </div>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Fri Aug 29 11:14:24 -0400 2008</td>
59
+ <td>Mon Aug 25 10:11:27 -0400 2008</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -69,6 +69,13 @@
69
69
  <div id="contextContent">
70
70
 
71
71
 
72
+ <div id="requires-list">
73
+ <h3 class="section-bar">Required files</h3>
74
+
75
+ <div class="name-list">
76
+ mack-orm_tasks&nbsp;&nbsp;
77
+ </div>
78
+ </div>
72
79
 
73
80
  </div>
74
81
 
@@ -22,14 +22,12 @@
22
22
  <div id="index-entries">
23
23
  <a href="classes/Mack.html">Mack</a><br />
24
24
  <a href="classes/Mack/Database.html">Mack::Database</a><br />
25
- <a href="classes/Mack/Database/Migrator.html">Mack::Database::Migrator</a><br />
26
- <a href="classes/Mack/Genosaurus/ActiveRecord/Helpers.html">Mack::Genosaurus::ActiveRecord::Helpers</a><br />
27
- <a href="classes/Mack/Genosaurus/ActiveRecord/ModelColumn.html">Mack::Genosaurus::ActiveRecord::ModelColumn</a><br />
28
- <a href="classes/Mack/ViewHelpers.html">Mack::ViewHelpers</a><br />
25
+ <a href="classes/Mack/Database/Generators.html">Mack::Database::Generators</a><br />
26
+ <a href="classes/Mack/Database/Migrations.html">Mack::Database::Migrations</a><br />
27
+ <a href="classes/Mack/Testing/ActiveRecordHelpers.html">Mack::Testing::ActiveRecordHelpers</a><br />
29
28
  <a href="classes/Mack/ViewHelpers/ActiveRecordHelpers.html">Mack::ViewHelpers::ActiveRecordHelpers</a><br />
30
29
  <a href="classes/MigrationGenerator.html">MigrationGenerator</a><br />
31
30
  <a href="classes/ModelGenerator.html">ModelGenerator</a><br />
32
- <a href="classes/ScaffoldGenerator.html">ScaffoldGenerator</a><br />
33
31
  </div>
34
32
  </div>
35
33
  </body>
@@ -23,12 +23,12 @@
23
23
  <a href="files/README.html">README</a><br />
24
24
  <a href="files/lib/mack-active_record_rb.html">lib/mack-active_record.rb</a><br />
25
25
  <a href="files/lib/mack-active_record/database_rb.html">lib/mack-active_record/database.rb</a><br />
26
- <a href="files/lib/mack-active_record/genosaurus_helpers_rb.html">lib/mack-active_record/genosaurus_helpers.rb</a><br />
26
+ <a href="files/lib/mack-active_record/database_migrations_rb.html">lib/mack-active_record/database_migrations.rb</a><br />
27
+ <a href="files/lib/mack-active_record/generators_rb.html">lib/mack-active_record/generators.rb</a><br />
27
28
  <a href="files/lib/mack-active_record/helpers/orm_helpers_rb.html">lib/mack-active_record/helpers/orm_helpers.rb</a><br />
28
29
  <a href="files/lib/mack-active_record/migration_generator/migration_generator_rb.html">lib/mack-active_record/migration_generator/migration_generator.rb</a><br />
29
- <a href="files/lib/mack-active_record/model_column_rb.html">lib/mack-active_record/model_column.rb</a><br />
30
30
  <a href="files/lib/mack-active_record/model_generator/model_generator_rb.html">lib/mack-active_record/model_generator/model_generator.rb</a><br />
31
- <a href="files/lib/mack-active_record/scaffold_generator/scaffold_generator_rb.html">lib/mack-active_record/scaffold_generator/scaffold_generator.rb</a><br />
31
+ <a href="files/lib/mack-active_record/test_extensions_rb.html">lib/mack-active_record/test_extensions.rb</a><br />
32
32
  <a href="files/lib/mack-active_record_tasks_rb.html">lib/mack-active_record_tasks.rb</a><br />
33
33
  </div>
34
34
  </div>
@@ -20,21 +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/Mack/Genosaurus/ActiveRecord/Helpers.html#M000002">columns (Mack::Genosaurus::ActiveRecord::Helpers)</a><br />
24
- <a href="classes/Mack/Genosaurus/ActiveRecord/Helpers.html#M000003">db_directory (Mack::Genosaurus::ActiveRecord::Helpers)</a><br />
25
- <a href="classes/Mack/Database.html#M000010">db_settings (Mack::Database)</a><br />
26
- <a href="classes/Mack/Database.html#M000012">drop_or_create_database (Mack::Database)</a><br />
23
+ <a href="classes/Mack/Database/Migrations.html#M000010">abort_if_pending_migrations (Mack::Database::Migrations)</a><br />
24
+ <a href="classes/Mack/Database/Generators.html#M000007">controller_template_location (Mack::Database::Generators)</a><br />
25
+ <a href="classes/Mack/Database.html#M000003">create (Mack::Database)</a><br />
26
+ <a href="classes/Mack/Database.html#M000004">drop (Mack::Database)</a><br />
27
+ <a href="classes/Mack/Database.html#M000006">dump_structure (Mack::Database)</a><br />
27
28
  <a href="classes/Mack/ViewHelpers/ActiveRecordHelpers.html#M000001">error_messages_for (Mack::ViewHelpers::ActiveRecordHelpers)</a><br />
28
- <a href="classes/Mack/Database.html#M000011">establish_connection (Mack::Database)</a><br />
29
- <a href="classes/Mack/Genosaurus/ActiveRecord/ModelColumn.html#M000008">form_element_id (Mack::Genosaurus::ActiveRecord::ModelColumn)</a><br />
30
- <a href="classes/Mack/Genosaurus/ActiveRecord/ModelColumn.html#M000007">form_element_name (Mack::Genosaurus::ActiveRecord::ModelColumn)</a><br />
31
- <a href="classes/Mack/Genosaurus/ActiveRecord/ModelColumn.html#M000009">form_field (Mack::Genosaurus::ActiveRecord::ModelColumn)</a><br />
32
- <a href="classes/Mack/Database/Migrator.html#M000014">migrate (Mack::Database::Migrator)</a><br />
33
- <a href="classes/Mack/Genosaurus/ActiveRecord/Helpers.html#M000004">migrations_directory (Mack::Genosaurus::ActiveRecord::Helpers)</a><br />
34
- <a href="classes/Mack/Genosaurus/ActiveRecord/ModelColumn.html#M000006">new (Mack::Genosaurus::ActiveRecord::ModelColumn)</a><br />
35
- <a href="classes/Mack/Genosaurus/ActiveRecord/Helpers.html#M000005">next_migration_number (Mack::Genosaurus::ActiveRecord::Helpers)</a><br />
36
- <a href="classes/Mack/Database/Migrator.html#M000015">rollback (Mack::Database::Migrator)</a><br />
37
- <a href="classes/Mack/Database/Migrator.html#M000013">version (Mack::Database::Migrator)</a><br />
29
+ <a href="classes/Mack/Database.html#M000002">establish_connection (Mack::Database)</a><br />
30
+ <a href="classes/Mack/Database.html#M000005">load_structure (Mack::Database)</a><br />
31
+ <a href="classes/Mack/Database/Migrations.html#M000008">migrate (Mack::Database::Migrations)</a><br />
32
+ <a href="classes/Mack/Database/Migrations.html#M000009">rollback (Mack::Database::Migrations)</a><br />
33
+ <a href="classes/Mack/Testing/ActiveRecordHelpers.html#M000012">rollback_transaction (Mack::Testing::ActiveRecordHelpers)</a><br />
34
+ <a href="classes/Mack/Database/Migrations.html#M000011">version (Mack::Database::Migrations)</a><br />
38
35
  </div>
39
36
  </div>
40
37
  </body>