aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin_comment_controller.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2015-05-28 09:44:20 +0100
committerGareth Rees <gareth@mysociety.org>2015-05-28 09:44:20 +0100
commit47c4c79948bb2fc35e24a898fda7fb636fda655d (patch)
tree7d7add385b0e0b8b4f1ac9be843a397b3022e28c /app/controllers/admin_comment_controller.rb
parentc6e8e298fd0861cd822f23f370a01ccbc21cb9d3 (diff)
parentd8da040dce219f66e7788bddf645ce9c9aa017f4 (diff)
Merge remote-tracking branch 'jpmckinney/truefalse' into rails-3-develop
Diffstat (limited to 'app/controllers/admin_comment_controller.rb')
-rw-r--r--app/controllers/admin_comment_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_comment_controller.rb b/app/controllers/admin_comment_controller.rb
index eed328b34..030afb645 100644
--- a/app/controllers/admin_comment_controller.rb
+++ b/app/controllers/admin_comment_controller.rb
@@ -16,7 +16,7 @@ class AdminCommentController < AdminController
old_body = @comment.body
old_visible = @comment.visible
- @comment.visible = params[:comment][:visible] == "true" ? true : false
+ @comment.visible = params[:comment][:visible] == "true"
if @comment.update_attributes(params[:comment])
@comment.info_request.log_event("edit_comment",