Skip to content

Instantly share code, notes, and snippets.

@traviskroberts
Created March 5, 2009 18:52
Show Gist options
  • Save traviskroberts/74490 to your computer and use it in GitHub Desktop.
Save traviskroberts/74490 to your computer and use it in GitHub Desktop.
def valid_phone
[self.home_phone, self.mobile_phone, self.work_phone].each { |phone| return phone if !phone.blank? }
return ''
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment