Skip to content

Instantly share code, notes, and snippets.

@trptcolin
Forked from traviskroberts/gist:74490
Created March 5, 2009 18:54
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 trptcolin/74491 to your computer and use it in GitHub Desktop.
Save trptcolin/74491 to your computer and use it in GitHub Desktop.
def valid_phone
[self.home_phone, self.mobile_phone, self.work_phone].each do |phone|
if !phone.blank?
return phone
end
end
return ''
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment