Module: ActsAsChattable::Relation
- Defined in:
- lib/acts_as_chattable/relation.rb
Instance Attribute Summary collapse
-
#relation_context ⇒ Object
Returns the value of attribute relation_context.
Instance Method Summary collapse
Instance Attribute Details
#relation_context ⇒ Object
Returns the value of attribute relation_context.
3 4 5 |
# File 'lib/acts_as_chattable/relation.rb', line 3 def relation_context @relation_context end |
Instance Method Details
#process(context = self.relation_context, &block) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/acts_as_chattable/relation.rb', line 5 def process(context = self.relation_context, &block) self.each do || block.call() if block_given? context.() if .removed context.() if .restored end end |