2021-09-10 20:01:17 +00:00
|
|
|
module Channelable
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
|
|
validates :account_id, presence: true
|
|
|
|
belongs_to :account
|
2021-11-18 05:02:29 +00:00
|
|
|
has_one :inbox, as: :channel, dependent: :destroy_async
|
2021-09-10 20:01:17 +00:00
|
|
|
end
|
|
|
|
|
2022-06-14 12:35:37 +00:00
|
|
|
def messaging_window_enabled?
|
2021-09-10 20:01:17 +00:00
|
|
|
false
|
|
|
|
end
|
|
|
|
end
|