Upgrade to rails 6 💎 (#11)

- upgraded to rails 6
- fixes various issues
This commit is contained in:
Sojan Jose
2019-08-19 01:19:57 -07:00
committed by Pranav Raj S
parent 3c32103e34
commit 52194116b3
53 changed files with 819 additions and 605 deletions

View File

@@ -18,10 +18,9 @@ class Message < ApplicationRecord
has_one :attachment, dependent: :destroy, autosave: true
after_commit :send_reply,
after_create :send_reply,
:dispatch_event,
:reopen_conversation,
on: [:create]
:reopen_conversation
def channel_token
@token ||= inbox.channel.try(:page_access_token)