Registration working until workshops

This commit is contained in:
Godwin
2015-08-04 21:54:04 -07:00
parent bbebefd6bf
commit 9da5f6a223
27 changed files with 1159 additions and 206 deletions
+5 -1
View File
@@ -24,7 +24,11 @@ class EmailConfirmation < ActiveRecord::Base
end
def valid_for_user?(user)
user.id == user_id && expiry < Time.now
user.id == user_id && !expired?
end
def expired?
expiry >= Time.now
end
protected