From 12fd95489a17833127d721ea217a83cb951acf68 Mon Sep 17 00:00:00 2001 From: jwollert Date: Fri, 27 Apr 2012 14:25:26 +0200 Subject: [PATCH] restrict mass_assignable fields through attr_accessible. not terribly useful at the moment, as we don't mass_assign --- lib/report.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/report.rb b/lib/report.rb index f3ed873a9e..4e39dceab1 100644 --- a/lib/report.rb +++ b/lib/report.rb @@ -13,8 +13,8 @@ class Report < ActiveRecord::Base before_save :serialize serialize :serialized, Hash - - attr_protected :project_id + + attr_accessible :name, :is_public, :serialized self.abstract_class = true # lets have subclasses have their own SQL tables