Sha256: 973bf88a93a965f49df9b02fb360f8094ddbf65dc2461bfb0ce793a3dd8d293b
Contents?: true
Size: 361 Bytes
Versions: 2
Compression:
Stored size: 361 Bytes
Contents
module ActsAsMessageable 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts-as-messageable-0.4.7 | lib/acts-as-messageable/relation.rb |
acts-as-messageable-0.4.6 | lib/acts-as-messageable/relation.rb |