Use a current_user helper for accessing the logged in user in all views.
This commit is contained in:
parent
41000078b9
commit
c819bec8b7
31 changed files with 99 additions and 97 deletions
|
@ -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 -%>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue