chore: General fixes and clean up (#1169)

This commit is contained in:
Sojan Jose
2020-08-25 23:04:02 +05:30
committed by GitHub
parent 124e43b477
commit 2193de9853
23 changed files with 111 additions and 121 deletions

View File

@@ -28,8 +28,6 @@
#
class Message < ApplicationRecord
include Events::Types
NUMBER_OF_PERMITTED_ATTACHMENTS = 15
validates :account_id, presence: true
@@ -105,6 +103,7 @@ class Message < ApplicationRecord
created_at: created_at,
message_type: message_type,
content_type: content_type,
private: private,
content_attributes: content_attributes,
source_id: source_id,
sender: sender.try(:webhook_data),