Sha256: 7b8af4faa8b107ad012a02c12c94c4ed2bfdab1778aef6f8867da877c92219ab
Contents?: true
Size: 553 Bytes
Versions: 16
Compression:
Stored size: 553 Bytes
Contents
module Socialization module Stores module Mixins module Base def touch_dependents(actor, victim) actor.touch if touch_actor?(actor) victim.touch if touch_victim?(victim) end def touch_actor?(actor) return false unless actor.respond_to?(:touch) touch == :all || touch.to_s =~ /er$/i end def touch_victim?(victim) return false unless victim.respond_to?(:touch) touch == :all || touch.to_s =~ /able$/i end end end end end
Version data entries
16 entries across 16 versions & 3 rubygems