Commit c7284557132f22945532dda7f8e26585bfe64c22

Authored by Leandro Santos
1 parent 008eabc0
Exists in master

avoid error in other environment without conference

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
lib/ext/person.rb
... ... @@ -18,6 +18,7 @@ class Person
18 18 end
19 19  
20 20 def conference_comments
21   - Profile['conferencia'].comments_received.where(author_id: id)
  21 + profile = Profile['conferencia']
  22 + profile.nil? ? [] : profile.comments_received.where(author_id: id)
22 23 end
23 24 end
... ...