Class: MessageSr

Inherits:
Sequel::Model
  • Object
show all
Defined in:
model/messages.rb

Instance Method Summary collapse

Instance Method Details

#repliesObject

Messages que son respuesta a este mensaje



45
46
47
# File 'model/messages.rb', line 45

def replies
  MessageSr.where(:reply_to=>self[:id])
end

#user_nameObject



40
41
42
43
# File 'model/messages.rb', line 40

def user_name

  User[self[:user_from]]&.name
end