Better warning when you used the incorrect class name in a seed file #40

Open
gaffo opened this Issue Sep 28, 2012 · 1 comment

Projects

None yet

1 participant

@gaffo
gaffo commented Sep 28, 2012

If you have a User class and accidentally put the wrong name in the seed, for instance:

Users.seed

rake db:seed_fu outputs

uninitialized constant SeedFu::Runner::Users

Really it should output:

Unknown class Users, Make sure you use the model class name you are trying to seed.

Or maybe if it's plural, you could singularize it:

You are trying to seed with the plural class Users, and you have a User model, please use User in the seed file
@gaffo
gaffo commented Sep 28, 2012

I'll likely add this if I get enough use out of the gem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment