Sha256: 5a27db75cd8d9971530c82c90cb9e7942f76949b4ed3487e90ca96e5d26c8755
Contents?: true
Size: 360 Bytes
Versions: 3
Compression:
Stored size: 360 Bytes
Contents
module ActsAsChattable module Relation attr_accessor :relation_context def process(context = self.relation_context, &block) self.each do |message| block.call(message) if block_given? context.delete_message(message) if message.removed context.restore_message(message) if message.restored end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
acts_as_chattable-0.0.4 | lib/acts_as_chattable/relation.rb |
acts_as_chattable-0.0.3 | lib/acts_as_chattable/relation.rb |
acts_as_chattable-0.0.2 | lib/acts_as_chattable/relation.rb |