aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/widgets_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-04-23 15:15:41 +0100
committerLouise Crow <louise.crow@gmail.com>2015-04-28 09:07:28 +0100
commit527c0010cad17f043663ea21b8e58395eac72e02 (patch)
tree87fb91360187c7680b1f4b159c80638efe45c54c /app/controllers/widgets_controller.rb
parent8f6d2dceb726d4725e83f2d8866f0c057fb1bec6 (diff)
Use a boolean operator - 'and' and 'or' are for control flow.
Diffstat (limited to 'app/controllers/widgets_controller.rb')
-rw-r--r--app/controllers/widgets_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/widgets_controller.rb b/app/controllers/widgets_controller.rb
index 2c788df38..0cc1008a1 100644
--- a/app/controllers/widgets_controller.rb
+++ b/app/controllers/widgets_controller.rb
@@ -32,7 +32,7 @@ class WidgetsController < ApplicationController
# Track interest in a request from a non-logged in user
def update
- if not @user and cookies[:widget_vote]
+ if !@user && cookies[:widget_vote]
@info_request.widget_votes.
where(:cookie => cookies[:widget_vote]).
first_or_create