Commit 09d49988711613ce616222e9651e466dd2129111

Authored by Hugo Melo
1 parent 98d2dd5f

Add methods for profile_completion rule

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
lib/ext/person.rb
... ... @@ -5,4 +5,10 @@ class Person
5 5 # TODO why this relationship doesn't exists in core?
6 6 has_many :comments, :foreign_key => 'author_id'
7 7  
  8 + def profile_completion_score_condition
  9 + self.points(category: 'profile_completion') == 0 and self.is_profile_complete?
  10 + end
  11 + def is_profile_complete?
  12 + true
  13 + end
8 14 end
... ...