Last active
August 29, 2015 14:13
-
-
Save xhoy/9a31d26854890cbd8326 to your computer and use it in GitHub Desktop.
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
emails_user_type = if emails.user_type.present? | |
email.user_type.to_a | |
else | |
[Email.new(emailaddress: "dummy@dummy.com")] | |
end |
kurtfunai
commented
Jan 7, 2015
suggestions from irc:
emails_system_type = Array (
emails.system_type.presence ||
Email.new(emailaddress: "dummy@dummy.coml")
)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment