Ticket #492 (closed enhancement: duplicate)

Opened 10 months ago

Last modified 10 months ago

Enable generators to handle associations and use options from the command line

Reported by: michael.kla..@gmx.net Assigned to:
Priority: medium Milestone: The Future
Component: Generators Keywords: datamapper generator association option
Cc:

Description

With this patch, you can do something like

./script/generate model Article comments:has_many,:through=:votes

Only contains the datamapper template, but should be easily adopted to other ORMs as well.

Attachments

merb-generator_patch.diff (6.3 kB) - added by michael.kla..@gmx.net on 01/31/08 13:56:22.
Enables additional options to be passed per field. Also, view templates other than .html.erb can be used as a fallback
merb_datamapper-generator_patch.diff (0.7 kB) - added by michael.kla..@gmx.net on 01/31/08 13:58:52.
Enables associations and takes additional options passed per field.

Change History

01/31/08 13:56:22 changed by michael.kla..@gmx.net

  • attachment merb-generator_patch.diff added.

Enables additional options to be passed per field. Also, view templates other than .html.erb can be used as a fallback

01/31/08 13:58:52 changed by michael.kla..@gmx.net

  • attachment merb_datamapper-generator_patch.diff added.

Enables associations and takes additional options passed per field.

02/11/08 13:33:00 changed by shayarne..@gmail.com

  • status changed from new to closed.
  • resolution set to duplicate.