Skip to content

Instantly share code, notes, and snippets.

@erichurst
Created May 1, 2010 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erichurst/386719 to your computer and use it in GitHub Desktop.
Save erichurst/386719 to your computer and use it in GitHub Desktop.
def referrer_must_be_existing_user
errors.add(:referral_id, "is not a valid user") if referral_id.blank?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment