Class: PolylingoChat::Participant

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
lib/generators/polylingo_chat/install/templates/models/participant.rb

Instance Method Summary collapse

Instance Method Details

#userObject

Alias for backward compatibility and convenience



13
14
15
# File 'lib/generators/polylingo_chat/install/templates/models/participant.rb', line 13

def user
  participantable
end

#user=(value) ⇒ Object



17
18
19
# File 'lib/generators/polylingo_chat/install/templates/models/participant.rb', line 17

def user=(value)
  self.participantable = value
end