Use a current_user helper for accessing the logged in user in all views.

This commit is contained in:
Andy Allan 2017-07-26 11:54:31 +01:00
parent 41000078b9
commit c819bec8b7
31 changed files with 99 additions and 97 deletions

View file

@ -10,7 +10,7 @@
<body>
<% data = {} -%>
<% if defined? ID_KEY %>
<% token = @user.access_token(ID_KEY) %>
<% token = current_user.access_token(ID_KEY) %>
<% data[:token] = token.token -%>
<% data[:token_secret] = token.secret -%>
<% data[:consumer_key] = token.client_application.key -%>