This project is archived and is in readonly mode.

#3123 ✓resolved
Diego Carrion

Default generator for ActiveModel

Reported by Diego Carrion | August 31st, 2009 @ 11:36 PM | in 3.0.2

When generating an scaffold, Rails now requires that custom ORMs define their API, so the controller knows how to call the model. This makes perfectly sense to ORMs that don't implement ActiveModel, like DataMapper, but not for ORMs that do implement ActiveModel, because the coolest part of implementing ActiveModel is that you could just plug the code and it will work with Rails defaults.

I have attached a patch that uses Rails::Generators::ActiveModelDefault in case none generator has been specified for the model, so people implementing ActiveModel dont have to worry about the API definition.

cheers

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Tags

Referenced by

Pages