RailsApps/rails_apps_composer — pull request #107 by vitaly (2012-08-22 20:05:15+00:00)
Title: fix confirmable/invitable devise handling of user model

there were several problems.

* users.confirmed_at should NOT be accessible. its a security issue. fix required also changing seeds.rb to confirm after creation.
* models.rb was copying user.rb w/o :confirmable. added gsub_file from auth.rb to models.rb

It seems like there is a lot of duplication between auth.rb and models.rb
And nether of them does the full job, so can't just skip models.rb or remove stuff in auth.rb
Fully fixing it is a bit too much for me to do right now, so I did a small 'fix' that at least removes the bug, w/o rewriting all. going forward though we do need to merge auth and models functionality.

Should probably move model handling from auth.rb to models.rb completely.

i.e. move generate "devise user" and all the user.rb mangling.