From 6d48b4297d826b1b431f5eafd78be00b0a2be919 Mon Sep 17 00:00:00 2001 From: Hugo Melo Date: Wed, 14 Oct 2015 17:09:35 -0300 Subject: [PATCH] Remove hardcoded check from person extension --- lib/ext/person.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/ext/person.rb b/lib/ext/person.rb index 5e5f91c..15a337f 100644 --- a/lib/ext/person.rb +++ b/lib/ext/person.rb @@ -14,12 +14,8 @@ class Person end def is_profile_complete? - !(self.name.blank? or - (self.data[:identidade_genero].blank? and self.data[:transgenero].blank?) or - self.data[:etnia].blank? or - self.data[:orientacao_sexual].blank? or - self.data[:state].blank? or - self.data[:city].blank?) + #FIXME: this method should check all fields on profile to be completed + false end def points_by_type type -- libgit2 0.21.2