From ee277fcb66f0cfee27adcb0b9c04436bb32b9983 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Wed, 4 Jul 2007 21:00:33 +0000 Subject: [PATCH] configuration must be a Hash --- app/models/virtual_community.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/virtual_community.rb b/app/models/virtual_community.rb index 60eb5b3..ef860fe 100644 --- a/app/models/virtual_community.rb +++ b/app/models/virtual_community.rb @@ -2,8 +2,9 @@ class VirtualCommunity < ActiveRecord::Base has_many :domains, :as => :owner - serialize :configuration + serialize :configuration, Hash def configuration - self[:configuration] ||= {} + self[:configuration] ||= Hash.new end + end -- libgit2 0.21.2