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