From d32b13d5abeb4cc7d966ddb23646af66aef51693 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 23 Jul 2013 16:06:48 -0300 Subject: [PATCH] Allowing nil source value for comment --- app/models/comment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/comment.rb b/app/models/comment.rb index 74272fb..f5dd826 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -104,7 +104,7 @@ class Comment < ActiveRecord::Base end delegate :environment, :to => :profile - delegate :profile, :to => :source + delegate :profile, :to => :source, :allow_nil => true include Noosfero::Plugin::HotSpot -- libgit2 0.21.2