We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d22afb commit 5427043Copy full SHA for 5427043
app/models/user.rb
@@ -90,8 +90,8 @@ def proposals
90
91
#---[ Validations ]-----------------------------------------------------
92
93
- validates_presence_of :email, :if => :complete_profile?
94
- validates_length_of :email, :within => 3..100, :if => :complete_profile?
+ validates_presence_of :email, :if => :email_required?
+ validates_length_of :email, :within => 3..100, :if => :email_required?
95
96
validates_presence_of :first_name, :if => :complete_profile?
97
validates_presence_of :last_name, :if => :complete_profile?
0 commit comments