* fix: Invalidate cache if any of the related objects change * Add specs: * Update context --------- Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
13 lines
263 B
Ruby
13 lines
263 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, touch: true
|
|
end
|
|
|
|
def messaging_window_enabled?
|
|
false
|
|
end
|
|
end
|