Skip to content

Commit

Permalink
If 1 name is given set it to the first name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Youch committed Apr 29, 2010
1 parent f1bfa57 commit c4b4f65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/end_user.rb
Expand Up @@ -435,8 +435,7 @@ def name=(val)
self.first_name = other_names[0]
self.middle_name = other_names[1..-1].join(" ") if other_names[1..-1]
else
self.first_name = ''
self.last_name = name[0]
self.first_name = name[0]
end
end

Expand Down

0 comments on commit c4b4f65

Please sign in to comment.