Sha256: e144e17731d246a904fa0a186f231aa2a726dcafdae0c71d34280731251ef235
Contents?: true
Size: 420 Bytes
Versions: 15
Compression:
Stored size: 420 Bytes
Contents
module MessageTrain class Ignore < ActiveRecord::Base belongs_to :participant, polymorphic: true belongs_to :conversation validates_presence_of :conversation, :participant scope :find_all_by_participant, ->(participant) { where(participant: participant) } def self.conversations MessageTrain::Conversation.joins(:ignores).where(message_train_ignores: { id: where(nil) }) end end end
Version data entries
15 entries across 15 versions & 1 rubygems