From 9614e777a5ec3ed13f36b787a2d0a548e2fb23ef Mon Sep 17 00:00:00 2001 From: jwollert Date: Wed, 20 Jul 2011 11:59:42 +0200 Subject: [PATCH] Ticket #4420: really set the is_public field of a query --- lib/report.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/report.rb b/lib/report.rb index 93c00e6a31..13db29fb70 100644 --- a/lib/report.rb +++ b/lib/report.rb @@ -182,18 +182,18 @@ class Report < ActiveRecord::Base end def public! - is_public = true + self.is_public = true end def public? - is_public + self.is_public end def private! - is_public = false + self.is_public = false end def private? - !is_public + !public? end end