13 lines
248 B
Ruby
13 lines
248 B
Ruby
|
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
|