Class: Effective::ChatUser

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/effective/chat_user.rb

Instance Method Summary collapse

Instance Method Details

#nameObject



43
44
45
# File 'app/models/effective/chat_user.rb', line 43

def name
  chat&.anonymous? ? anonymous_name : display_name
end

#to_sObject



39
40
41
# File 'app/models/effective/chat_user.rb', line 39

def to_s
  name.presence || 'New Chat User'
end