summaryrefslogtreecommitdiff
path: root/app/models/member.rb
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2016-08-04 07:56:06 +0200
committerAdam Niedzielski <adamsunday@gmail.com>2016-08-04 07:56:06 +0200
commitd0aa98bc5dc7228415f1eba2f61f75fa6406180a (patch)
tree03502dc857d0697d0183d8613af16c1752601247 /app/models/member.rb
parent28fc9088558300bbb671412baf0c3915421a0028 (diff)
downloadgitlab-ce-d0aa98bc5dc7228415f1eba2f61f75fa6406180a.tar.gz
Add Member#expires? method.
Diffstat (limited to 'app/models/member.rb')
-rw-r--r--app/models/member.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/member.rb b/app/models/member.rb
index 6b9206163c4..9d913805ad2 100644
--- a/app/models/member.rb
+++ b/app/models/member.rb
@@ -125,6 +125,10 @@ class Member < ActiveRecord::Base
invite? || request?
end
+ def expires?
+ expires_at.present?
+ end
+
def accept_request
return false unless request?