diff options
Diffstat (limited to 'app/models/participant.rb')
-rw-r--r-- | app/models/participant.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/participant.rb b/app/models/participant.rb index c9f6746..3e7d924 100644 --- a/app/models/participant.rb +++ b/app/models/participant.rb @@ -59,6 +59,9 @@ class Participant < ActiveRecord::Base not Membership.receiver(id, message.id).empty? end + def events? + self.events_.blank? ? false : true + end def self.generate_anonymous_participant cookie = Digest::SHA1.hexdigest('something secret'+Time.now.to_s+rand.to_s) |