module Socialization::Stores::Mixins::Base

Public Instance Methods

touch_actor?(actor) click to toggle source
# File lib/socialization/stores/mixins/base.rb, line 10
def touch_actor?(actor)
  return false unless actor.respond_to?(:touch)
  touch == :all || touch.to_s =~ /er$/i
end
touch_dependents(actor, subject) click to toggle source
# File lib/socialization/stores/mixins/base.rb, line 5
def touch_dependents(actor, subject)
  actor.touch if touch_actor?(actor)
  subject.touch if touch_subject?(subject)
end
touch_subject?(subject) click to toggle source
# File lib/socialization/stores/mixins/base.rb, line 15
def touch_subject?(subject)
  return false unless subject.respond_to?(:touch)
  touch == :all || touch.to_s =~ /able$/i
end
Also aliased as: touch_victim?
touch_victim?(subject)
Alias for: touch_subject?