refactored login process, added remember option for login

This commit is contained in:
albert
2011-10-15 16:36:07 -04:00
parent 1b7102b2e6
commit d324f4a071
10 changed files with 142 additions and 37 deletions

View File

@@ -54,4 +54,8 @@ class Ban < ActiveRecord::Base
def duration
@duration
end
def expired?
expires_at < Time.now
end
end