Mercurial > hg > soundsoftware-site
diff app/models/user.rb @ 65:69ee2e406f71 luisf
Correctly outputs an error message if the user's description field is not set.
author | luisf |
---|---|
date | Mon, 06 Dec 2010 12:54:56 +0000 |
parents | 9d42bcda8cea |
children | b859cc0c4fa1 440c4f4bf2d6 |
line wrap: on
line diff
--- a/app/models/user.rb Mon Dec 06 11:15:03 2010 +0000 +++ b/app/models/user.rb Mon Dec 06 12:54:56 2010 +0000 @@ -52,6 +52,7 @@ belongs_to :auth_source has_one :ssamr_user_detail, :dependent => :destroy, :class_name => 'SsamrUserDetail' + accepts_nested_attributes_for :ssamr_user_detail # Active non-anonymous users scope named_scope :active, :conditions => "#{User.table_name}.status = #{STATUS_ACTIVE}"