NoamB/sorcery — pull request #93 by ahazem (2011-10-14 19:40:59+00:00)
Title: A better generator for the gem

Hi,

The generator works as follows:

rails g sorcery:install

That's the basic command, of course I've chosen install over bootstrap because I thought it would be nice to keep it more aligned with the other gems (like devise:install / rspec:install), but you can change it if you feel it should be 'rails g sorcery:bootstrap'.

The command should copy the initializer to config/initializers folder and copy the core migration file to db/migrate and then it will generate the user model and add 'authenticates_with_sorcery!' to it.

You can pass submodules, change the model name if you don't want to use the default 'User' and also if you'd like you can get only the migration files added to your project.