Skip to content

Commit

Permalink
Simpler logic for first_name vs email in activity history
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrove committed Apr 11, 2012
1 parent 5886f62 commit 52efcc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/templates/message.jst.eco
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<div class="readable">
<span class="user">
<%= @activity.user.first_name != null ? @activity.user.first_name : @activity.user.email %>
<%= @activity.user.first_name || @activity.user.email %>
</span>

<span class="content">
Expand Down

0 comments on commit 52efcc5

Please sign in to comment.