Commit d32b13d5abeb4cc7d966ddb23646af66aef51693
1 parent
7798223b
Exists in
master
and in
23 other branches
Allowing nil source value for comment
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/comment.rb
| @@ -104,7 +104,7 @@ class Comment < ActiveRecord::Base | @@ -104,7 +104,7 @@ class Comment < ActiveRecord::Base | ||
| 104 | end | 104 | end |
| 105 | 105 | ||
| 106 | delegate :environment, :to => :profile | 106 | delegate :environment, :to => :profile |
| 107 | - delegate :profile, :to => :source | 107 | + delegate :profile, :to => :source, :allow_nil => true |
| 108 | 108 | ||
| 109 | include Noosfero::Plugin::HotSpot | 109 | include Noosfero::Plugin::HotSpot |
| 110 | 110 |