Skip to content

Commit

Permalink
Merge pull request github#12 from georgiknox/patch-1
Browse files Browse the repository at this point in the history
Nil check for public email
  • Loading branch information
gjtorikian committed Feb 20, 2014
2 parents 11eda73 + 57fcf56 commit a0dceac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/ruby/basics-of-authentication/views/advanced.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<body>
<p>Well, well, well, <%= login %>!</p>
<p>
<% if !email.empty? %> It looks like your public email address is <%= email %>.
<% if !email.nil? && !email.empty? %> It looks like your public email address is <%= email %>.
<% else %> It looks like you don't have a public email. That's cool.
<% end %>
</p>
Expand Down

0 comments on commit a0dceac

Please sign in to comment.