diff --git a/lib/ext/person.rb b/lib/ext/person.rb index 4bed028..4eec24c 100644 --- a/lib/ext/person.rb +++ b/lib/ext/person.rb @@ -18,6 +18,7 @@ class Person end def conference_comments - Profile['conferencia'].comments_received.where(author_id: id) + profile = Profile['conferencia'] + profile.nil? ? [] : profile.comments_received.where(author_id: id) end end -- libgit2 0.21.2