diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-04-23 15:13:03 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-28 09:07:28 +0100 |
commit | 8f6d2dceb726d4725e83f2d8866f0c057fb1bec6 (patch) | |
tree | 487e4960a0526ef2bb73fee76f495ce8c84379e1 /app/controllers/widgets_controller.rb | |
parent | ea5d96088dbafd807c9e2495050175f3cb97adf5 (diff) |
Use || - 'and' and 'or' are for control flow, not logical operators
Diffstat (limited to 'app/controllers/widgets_controller.rb')
-rw-r--r-- | app/controllers/widgets_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |