12 lines
254 B
Ruby
12 lines
254 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 has_24_hour_messaging_window?
|
|
false
|
|
end
|
|
end
|