Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [2cb60abfecbad78046b0afde156c72a9ae766cf0] by Fabien Jakimowicz

Revision 2cb60abfecbad78046b0afde156c72a9ae766cf0, committed 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...

5 changed files

  • 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