Skip to content

Instantly share code, notes, and snippets.

@ryan5500
Created August 10, 2009 06:22
Show Gist options
  • Save ryan5500/165030 to your computer and use it in GitHub Desktop.
Save ryan5500/165030 to your computer and use it in GitHub Desktop.
sub edit_user {
my ($self, $update_info) = @_;
if (!%$update_info) {
return; #ERROR
}
#TODO validate update_info
my $user_obj = models('User')->update(%$update_info);
return $user_obj;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment