Skip to content

Commit

Permalink
Include current_user.email in the initial page render
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrove committed Apr 11, 2012
1 parent f6661b1 commit 43365db
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/views/layouts/application.html.erb
Expand Up @@ -14,10 +14,11 @@
<%= javascript_tag do %>
<%- if user_signed_in? %>
<%- current_user_data = {
:id => current_user.id,
:first_name => current_user.first_name,
:last_name => current_user.last_name,
:auth_token => current_user.authentication_token,
:id => current_user.id,
:first_name => current_user.first_name,
:last_name => current_user.last_name,
:email => current_user.email,
:auth_token => current_user.authentication_token,
:gravatar_hash => current_user.gravatar_hash
}
%>
Expand Down

0 comments on commit 43365db

Please sign in to comment.