Chatwoot/app/models/concerns/channelable.rb

13 lines
248 B
Ruby
Raw Normal View History

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