diaspora/diaspora — pull request #3390 by stevenh512 (2012-06-16 10:10:25+00:00)
Title: User model -  mass-assignable attributes fix

`:username`, `:email` and `:remember_me` should be mass-assignable.

I can see why the specs are passing, we're using Factories there, but I have no idea why the cukes are green when we have steps that exercise the new user registration form.

fixes #3377

Rails console output (before applying this patch):

```
1.9.3p125 :001 > u = User.new(username: 'example',
1.9.3p125 :002 > email: 'user@example.com',
1.9.3p125 :003 > password: 'password',
1.9.3p125 :004 > password_confirmation: 'password')
WARNING: Can't mass-assign protected attributes: username, email
=> # u.username
=> nil
1.9.3p125 :006 > u.email
=> ""
1.9.3p125 :007 > u.valid?
=> false
```