# FIXME: the following don't really belong here, but they have to come after # the reference stuff. we need to organize a bit! event :update_rule_cache, :finalize, when: :is_rule? do self.class.clear_rule_cache end event :expire_related, :finalize do reset_patterns structuree_names.each { |name| ActManager.expirees << name } if is_structure? end