Commit 41cdfb9e117924adf99ac5ac43bdf49b9c8f77af

added before_create to comments controller to ensure that save is successful when open_id_authentication is not used

Commit diff

app/models/comment.rb

 
3030 :code_formatter => Lesstile::CodeRayFormatter
3131 )
3232 end
33
34 # Ensure that comments can be saved when not using open_id validation
35 def before_create
36 unless requires_openid_authentication?
37 self.author_openid_authority = ""
38 self.author_url = ""
39 self.author_email = ""
40 end
41 end
3342
3443 def requires_openid_authentication?
3544 !!self.author.index(".")
toggle raw diff