Class: Conversations::UserConversation

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/conversations/user_conversation.rb

Instance Method Summary collapse

Instance Method Details

#participantsObject

TODO: Add more attributes like :username, :first_name, :last_name



17
18
19
# File 'app/models/conversations/user_conversation.rb', line 17

def participants
  self.users.collect { |u| u.name }.join(', ')
end