From b7075c6770c5274f1317da7ae6fa3839328a1606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Garc=C3=ADa=20Cota?= Date: Fri, 13 Jan 2012 13:53:16 +0100 Subject: [PATCH] added safe_attributes directive --- lib/join_project/patches/project_patch.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/join_project/patches/project_patch.rb b/lib/join_project/patches/project_patch.rb index 200f248..209ab8e 100644 --- a/lib/join_project/patches/project_patch.rb +++ b/lib/join_project/patches/project_patch.rb @@ -6,6 +6,7 @@ def self.included(base) base.extend(ClassMethods) base.class_eval do validates_inclusion_of :project_subscription, :in => join_options, :allow_nil => true, :allow_blank => 'true' + safe_attributes :project_subscription end end