Skip to content
Snippets Groups Projects
Commit d0aa98bc authored by Adam Niedzielski's avatar Adam Niedzielski
Browse files

Add Member#expires? method.

parent 28fc9088
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -125,6 +125,10 @@ class Member < ActiveRecord::Base
invite? || request?
end
 
def expires?
expires_at.present?
end
def accept_request
return false unless request?
 
Loading
Loading
Loading
Loading
@@ -59,7 +59,7 @@
= time_ago_with_tooltip(member.requested_at)
- else
Joined #{time_ago_with_tooltip(member.created_at)}
- if member.expires_at.present?
- if member.expires?
%span.prepend-left-20
Access expires #{member.expires_at.to_s(:medium)}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment