From a2f208b0134cb0e22c8c99cb4a22c6e700d98a96 Mon Sep 17 00:00:00 2001 From: Steven Hancock Date: Sat, 16 Jun 2012 03:05:10 -0700 Subject: [PATCH] User model - mass-assignable attributes fix `:username`, `:email` and `:remember_me` should be mass-assignable. fixes #3377 --- app/models/user.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 571fafa64..bbed4268b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -63,8 +63,9 @@ class User < ActiveRecord::Base before_save :guard_unconfirmed_email, :save_person! - - attr_accessible :getting_started, + attr_accessible :username, + :email, + :getting_started, :password, :password_confirmation, :language, @@ -73,7 +74,8 @@ class User < ActiveRecord::Base :invitation_identifier, :show_community_spotlight_in_stream, :auto_follow_back, - :auto_follow_back_aspect_id + :auto_follow_back_aspect_id, + :remember_me def self.all_sharing_with_person(person)