added comment

This commit is contained in:
Mike Slemmer 2012-11-08 22:51:17 -08:00
parent 27fb2f3ceb
commit 2982cd998a
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ module JamRuby
has_many :received_invitations, :foreign_key => "receiver_id", :inverse_of => :receiver, :class_name => "JamRuby::Invitation"
has_many :sent_invitations, :foreign_key => "sender_id", :inverse_of => :sender, :class_name => "JamRuby::Invitation"
# This causes the authenticate method to be generated (among other stuff)
has_secure_password
before_save { |user| user.email = email.downcase }