Skip to content
Extraits de code Groupes Projets
Valider 1f40ea23 rédigé par Raphael's avatar Raphael
Parcourir les fichiers

logging is awesome

parent 91b0a1e8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -22,10 +22,12 @@ class Comment
validates_presence_of :text
def push_upstream
Rails.logger.info("GOIN UPSTREAM")
push_to([post.person])
end
def push_downstream
Rails.logger.info("SWIMMIN DOWNSTREAM")
push_to(post.people_with_permissions)
end
......
......@@ -78,17 +78,17 @@ class Person
def send_comment( c )
if self.remote?
if c.post.person.owner.nil?
#puts "The commenter is not here, and neither is the poster"
Rails.logger.info "The commenter is not here, and neither is the poster"
elsif c.post.person.owner
#puts "The commenter is not here, and the poster is"
Rails.logger.info "The commenter is not here, and the poster is"
c.push_downstream
end
else
if owns? c.post
#puts "The commenter is here, and is the poster"
Rails.logger.info "The commenter is here, and is the poster"
c.push_downstream
else
#puts "The commenter is here, and is not the poster"
Rails.logger.info "The commenter is here, and is not the poster"
c.push_upstream
end
end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter