Declare or use helpers methods with ActionCable

后端 未结 0 500
轻奢々
轻奢々 2020-12-30 10:32

i have this method helper:

def is_for_or_by_me message
   return true if message.user.id == current_user.id
   false
end

And this partial:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题