Class: Participant

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
ApiHandling
Defined in:
app/models/participant.rb

Instance Method Summary collapse

Methods included from ApiHandling

expose_api

Instance Method Details

#owned_by?(other_user) ⇒ Boolean


10
11
12
# File 'app/models/participant.rb', line 10

def owned_by?(other_user)
  user.id == other_user.id
end