mack-active_record 0.6.0 → 0.6.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: model_column.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>model_column.rb</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>lib/model_column.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Fri Jul 18 16:07:34 -0400 2008</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,164 @@
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: model_generator.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>model_generator.rb</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>lib/model_generator/model_generator.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Fri Jul 18 16:07:34 -0400 2008</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+ <div id="description">
72
+ <p>
73
+ This will generate an ORM &#8216;model&#8217; for your application based on
74
+ the specified ORM you&#8216;re using.
75
+ </p>
76
+ <p>
77
+ Example without columns:
78
+ </p>
79
+ <pre>
80
+ rake generate:model name=user
81
+ </pre>
82
+ <p>
83
+ app/models/user.rb:
84
+ </p>
85
+ <pre>
86
+ class User &lt; ActiveRecord::Base
87
+ end
88
+ </pre>
89
+ <p>
90
+ db/migrations/&lt;number&gt;_create_users.rb:
91
+ </p>
92
+ <pre>
93
+ class CreateUsers &lt; ActiveRecord::Migration
94
+ self.up
95
+ end
96
+
97
+ self.down
98
+ end
99
+ end
100
+ </pre>
101
+ <p>
102
+ Example with columns:
103
+ </p>
104
+ <pre>
105
+ rake generate:model name=user cols=username:string,email_address:string,created_at:datetime,updated_at:datetime
106
+ </pre>
107
+ <p>
108
+ app/models/user.rb:
109
+ </p>
110
+ <pre>
111
+ class User &lt; ActiveRecord::Base
112
+ end
113
+ </pre>
114
+ <p>
115
+ db/migrations/&lt;number&gt;_create_users.rb:
116
+ </p>
117
+ <pre>
118
+ class CreateUsers &lt; ActiveRecord::Migration
119
+ self.up
120
+ create_table :users do |t|
121
+ t.column :username, :string
122
+ t.column :email_address, :string
123
+ t.column :created_at, :datetime
124
+ t.column :updated_at, :datetime
125
+ end
126
+
127
+ self.down
128
+ drop_table :users
129
+ end
130
+ end
131
+ </pre>
132
+
133
+ </div>
134
+
135
+
136
+ </div>
137
+
138
+
139
+ </div>
140
+
141
+
142
+ <!-- if includes -->
143
+
144
+ <div id="section">
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+ <!-- if method_list -->
154
+
155
+
156
+ </div>
157
+
158
+
159
+ <div id="validator-badges">
160
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
161
+ </div>
162
+
163
+ </body>
164
+ </html>
@@ -0,0 +1,114 @@
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: scaffold_generator.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>scaffold_generator.rb</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>lib/scaffold_generator/scaffold_generator.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Fri Jul 18 16:07:34 -0400 2008</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
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
+
83
+ </div>
84
+
85
+
86
+ </div>
87
+
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
+
105
+
106
+ </div>
107
+
108
+
109
+ <div id="validator-badges">
110
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
111
+ </div>
112
+
113
+ </body>
114
+ </html>
@@ -0,0 +1,36 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Classes
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Classes</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Classes</h1>
22
+ <div id="index-entries">
23
+ <a href="classes/Mack.html">Mack</a><br />
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 />
29
+ <a href="classes/Mack/ViewHelpers/ActiveRecordHelpers.html">Mack::ViewHelpers::ActiveRecordHelpers</a><br />
30
+ <a href="classes/MigrationGenerator.html">MigrationGenerator</a><br />
31
+ <a href="classes/ModelGenerator.html">ModelGenerator</a><br />
32
+ <a href="classes/ScaffoldGenerator.html">ScaffoldGenerator</a><br />
33
+ </div>
34
+ </div>
35
+ </body>
36
+ </html>
@@ -0,0 +1,36 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Files
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Files</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Files</h1>
22
+ <div id="index-entries">
23
+ <a href="files/README.html">README</a><br />
24
+ <a href="files/lib/database_rb.html">lib/database.rb</a><br />
25
+ <a href="files/lib/genosaurus_helpers_rb.html">lib/genosaurus_helpers.rb</a><br />
26
+ <a href="files/lib/helpers/orm_helpers_rb.html">lib/helpers/orm_helpers.rb</a><br />
27
+ <a href="files/lib/mack-active_record_rb.html">lib/mack-active_record.rb</a><br />
28
+ <a href="files/lib/mack-active_record_tasks_rb.html">lib/mack-active_record_tasks.rb</a><br />
29
+ <a href="files/lib/migration_generator/migration_generator_rb.html">lib/migration_generator/migration_generator.rb</a><br />
30
+ <a href="files/lib/model_column_rb.html">lib/model_column.rb</a><br />
31
+ <a href="files/lib/model_generator/model_generator_rb.html">lib/model_generator/model_generator.rb</a><br />
32
+ <a href="files/lib/scaffold_generator/scaffold_generator_rb.html">lib/scaffold_generator/scaffold_generator.rb</a><br />
33
+ </div>
34
+ </div>
35
+ </body>
36
+ </html>
@@ -0,0 +1,41 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Methods
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Methods</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Methods</h1>
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 />
27
+ <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 />
38
+ </div>
39
+ </div>
40
+ </body>
41
+ </html>
data/doc/index.html ADDED
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
5
+
6
+ <!--
7
+
8
+ mack-active_record
9
+
10
+ -->
11
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
12
+ <head>
13
+ <title>mack-active_record</title>
14
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
+ </head>
16
+ <frameset rows="20%, 80%">
17
+ <frameset cols="25%,35%,45%">
18
+ <frame src="fr_file_index.html" title="Files" name="Files" />
19
+ <frame src="fr_class_index.html" name="Classes" />
20
+ <frame src="fr_method_index.html" name="Methods" />
21
+ </frameset>
22
+ <frame src="files/README.html" name="docwin" />
23
+ </frameset>
24
+ </html>