diff --git a/lib/ext/person.rb b/lib/ext/person.rb index dca6fe1..73dce04 100644 --- a/lib/ext/person.rb +++ b/lib/ext/person.rb @@ -5,4 +5,10 @@ class Person # TODO why this relationship doesn't exists in core? has_many :comments, :foreign_key => 'author_id' + def profile_completion_score_condition + self.points(category: 'profile_completion') == 0 and self.is_profile_complete? + end + def is_profile_complete? + true + end end -- libgit2 0.21.2