Permalink
Browse files

try

  • Loading branch information...
1 parent 13781e7 commit 80a2804ad6b4cd832b14012b410c8b65549bf16d @shell shell committed Apr 14, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/views/playlists/show.html.haml
  2. +1 −1 app/views/playlists/watch.html.haml
@@ -39,7 +39,7 @@
:javascript
current_playlist = '#{@playlist.id}';
current_user = '#{@playlist.user.username}';
- window.current_id = '#{current_user.id}';
+ window.current_id = '#{current_user.try(:id)}';
window.watch = 0;
window.access_token = '#{@access_token}';
@@ -33,7 +33,7 @@
%script(type="text/javascript")
window.current_playlist = '#{@playlist.id}';
window.current_user = '#{@playlist.user.username}';
- window.current_id = '#{current_user.id}';
+ window.current_id = '#{current_user.try(:id)}';
window.watch = 1;
window.access_token = '#{@access_token}';

0 comments on commit 80a2804

Please sign in to comment.