Chatwoot/app/models/concerns/channelable.rb

12 lines
250 B
Ruby

module Channelable
extend ActiveSupport::Concern
included do
validates :account_id, presence: true
belongs_to :account
has_one :inbox, as: :channel, dependent: :destroy_async
end
def messaging_window_enabled?
false
end
end