Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't change user names to ids in user_id_or_name_exists
The user_id_or_name_exists() validator was returning the user id if the given argument was a user name. Return the user name instead. If the given argument is a user id, still return the user id as before. Also added a convert_user_id_or_name_to_id() converter for when you don't want the id returned if a name is given.
- Loading branch information
Sean Hammond
committed
Oct 4, 2012
1 parent
60407fb
commit 4c0a22e
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters