Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8832 (new enhancement)

Opened 3 years ago

Last modified 3 years ago

[PATCH] Scaffold generator producing singleton resources

Reported by: mathie Assigned to: core
Priority: normal Milestone: 2.x
Component: Railties Version: edge
Severity: normal Keywords:
Cc:

Description

Builds upon #8831 to allow the scaffold generator to produce singleton resources. In order to make this work without repeating myself too heavily, I've made ScaffoldGenerator a subclass of ResourceGenerator which has cleaned things up a little.

Rationale: This patch adds the ability to generate singleton resource scaffold easily without having to immediately tweak the generated code.

Attachments

scaffold_generator_for_singleton_resources.diff (10.6 kB) - added by mathie on 07/01/07 19:12:25.

Change History

07/01/07 19:12:25 changed by mathie

  • attachment scaffold_generator_for_singleton_resources.diff added.

07/01/07 19:12:39 changed by mathie

  • component changed from ActiveRecord to Railties.