From 8f6d2dceb726d4725e83f2d8866f0c057fb1bec6 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Thu, 23 Apr 2015 15:13:03 +0100 Subject: Use || - 'and' and 'or' are for control flow, not logical operators --- app/controllers/widgets_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/widgets_controller.rb') diff --git a/app/controllers/widgets_controller.rb b/app/controllers/widgets_controller.rb index 04378a724..2c788df38 100644 --- a/app/controllers/widgets_controller.rb +++ b/app/controllers/widgets_controller.rb @@ -20,7 +20,7 @@ class WidgetsController < ApplicationController if @user @existing_track = TrackThing.find_existing(@user, @track_thing) end - unless @user or cookies[:widget_vote] + unless @user || cookies[:widget_vote] cookies.permanent[:widget_vote] = SecureRandom.hex(10) end render :action => 'show', :layout => false -- cgit v1.2.3