Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

gracefully handle nil @earl and @user_session

  • Loading branch information...
commit 690110cbd68f26bf4cb5e71ca2453a3d4575e597 1 parent 47a3211
@lukebaker lukebaker authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/views/widget/layouts/application.html.haml
View
2  app/views/widget/layouts/application.html.haml
@@ -56,7 +56,7 @@
if (cookies_failed) {
cookies_failed.style.display = 'block';
var img = new Image();
- img.src = '/cookies_blocked.gif?question_id=#{@earl.question_id}&session_id=#{@user_session.session_id}&referrer=' + encodeURIComponent(document.referrer);
+ img.src = '/cookies_blocked.gif?question_id=#{@earl.try(:question_id)}&session_id=#{@user_session.try(:session_id)}&referrer=' + encodeURIComponent(document.referrer);
}
}
else {
Please sign in to comment.
Something went wrong with that request. Please try again.