Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 1719 Bytes
1 | Description: |
2 | The extension_model generator creates stubs for a new model for an |
3 | extension. |
4 | |
5 | The generator takes the extension name and a model name as its arguments. |
6 | The model name may be given in CamelCase or under_score and should not be |
7 | suffixed with 'Model'. |
8 | |
9 | As additional parameters, the generator will take attribute pairs |
10 | described by name and type. These attributes will be used to prepopulate |
11 | the migration to create the table for the model and give you a set of |
12 | predefined fixtures. You don't have to think up all attributes up front, |
13 | but it's a good idea of adding just the baseline of what's needed to start |
14 | really working with the resource. |
15 | |
16 | The generator creates a model class in |
17 | vendor/extensions/extension_name/app/models, a test suite in |
18 | vendor/extensions/extension_name/test/unit, test fixtures in |
19 | vendor/extensions/extension_name/test/fixtures/singular_name.yml, and a |
20 | migration in vendor/extensions/extension_name/db/migrate. |
21 | |
22 | Examples: |
23 | ./script/generate extension_model MyExt account |
24 | |
25 | This will create an Account model: |
26 | |
27 | Model: vendor/extensions/my_ext/app/models/account.rb |
28 | Migration: vendor/extensions/my_ext/db/migrate/XXX_add_accounts.rb |
29 | Spec: vendor/extensions/my_ext/spec/models/account_spec.rb |
30 | Test: vendor/extensions/my_ext/test/unit/account_test.rb (if extension created with "--with-test-unit") |
31 | Fixtures: vendor/extensions/my_ext/test/fixtures/accounts.yml (if extension created with "--with-test-unit") |
32 | |
33 | ./script/generate extension_model MyExt post title:string body:text |
34 | |
35 | Creates post model with predefined attributes. |