mardi 7 avril 2015

Devise close registration but seed database with admin account

I'm looking to completely close off my registration system (temporarily) and only have 1 admin account that can be either raked into the database or seeded.


Is this possible with Devise at all? Or will a closed off registration also close off the seed/rake task with my admin user in it?


I currently have a user model with the typical devise setup, with an admin column that is a boolean - I'm currently setting that column in development by going into rails console and manually changing it.


Any help would be brilliant!


Thanks


Aucun commentaire:

Enregistrer un commentaire