This project is archived and is in readonly mode.

Changeset [2cb60abfecbad78046b0afde156c72a9ae766cf0] by Fabien Jakimowicz

May 27th, 2009 @ 12:14 PM

Add an model_subclass generator.

This generator creates a new model as a subclass of an existing model and the unit test for that model. Lets users avoid having to manually delete the fixtures and migration or remember to pass those arguments.

[#2702 state:committed]

Signed-off-by: Michael Koziarski michael@koziarski.com http://github.com/rails/rails/co...

Committed by Fabien Jakimowicz

  • M railties/lib/rails_generator/generators/components/model_subclass/USAGE
  • M railties/lib/rails_generator/generators/components/model_subclass/model_subclass_generator.rb
  • M railties/lib/rails_generator/generators/components/model_subclass/templates/model.rb
  • M railties/lib/rails_generator/generators/components/model_subclass/templates/unit_test.rb
  • M railties/test/generators/rails_model_subclass_generator_test.rb

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>