Commit ee277fcb66f0cfee27adcb0b9c04436bb32b9983

Authored by AntonioTerceiro
1 parent 084754a0

configuration must be a Hash



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@19 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
app/models/virtual_community.rb
@@ -2,8 +2,9 @@ class VirtualCommunity < ActiveRecord::Base @@ -2,8 +2,9 @@ class VirtualCommunity < ActiveRecord::Base
2 2
3 has_many :domains, :as => :owner 3 has_many :domains, :as => :owner
4 4
5 - serialize :configuration 5 + serialize :configuration, Hash
6 def configuration 6 def configuration
7 - self[:configuration] ||= {} 7 + self[:configuration] ||= Hash.new
8 end 8 end
  9 +
9 end 10 end