Skip to content

Instantly share code, notes, and snippets.

@erichurst
Created May 1, 2010 22:35
Show Gist options
  • 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