Skip to content

A better generator for the gem #93

Merged
merged 1 commit into from Oct 14, 2011

3 participants

@ahazem
ahazem commented Oct 14, 2011

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.

@NoamB NoamB merged commit 34922ae into NoamB:master Oct 14, 2011
@NoamB
Owner
NoamB commented Oct 14, 2011

Good job on the generator. Thanks :)

@kbighorse
Collaborator

I think the gemspec might need to be updated: https://gist.github.com/1288700

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.