Merge pull request #3390 from stevenh512/fix_user_attributes
User model - mass-assignable attributes fix
This commit is contained in:
commit
d36209ae4b
1 changed files with 5 additions and 3 deletions
|
|
@ -63,8 +63,9 @@ class User < ActiveRecord::Base
|
||||||
before_save :guard_unconfirmed_email,
|
before_save :guard_unconfirmed_email,
|
||||||
:save_person!
|
:save_person!
|
||||||
|
|
||||||
|
attr_accessible :username,
|
||||||
attr_accessible :getting_started,
|
:email,
|
||||||
|
:getting_started,
|
||||||
:password,
|
:password,
|
||||||
:password_confirmation,
|
:password_confirmation,
|
||||||
:language,
|
:language,
|
||||||
|
|
@ -73,7 +74,8 @@ class User < ActiveRecord::Base
|
||||||
:invitation_identifier,
|
:invitation_identifier,
|
||||||
:show_community_spotlight_in_stream,
|
:show_community_spotlight_in_stream,
|
||||||
:auto_follow_back,
|
:auto_follow_back,
|
||||||
:auto_follow_back_aspect_id
|
:auto_follow_back_aspect_id,
|
||||||
|
:remember_me
|
||||||
|
|
||||||
|
|
||||||
def self.all_sharing_with_person(person)
|
def self.all_sharing_with_person(person)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue