Class: Effective::ChatUser
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Effective::ChatUser
- Defined in:
- app/models/effective/chat_user.rb
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
43 44 45 |
# File 'app/models/effective/chat_user.rb', line 43 def name chat&.anonymous? ? anonymous_name : display_name end |
#to_s ⇒ Object
39 40 41 |
# File 'app/models/effective/chat_user.rb', line 39 def to_s name.presence || 'New Chat User' end |