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
Branches
Étiquettes
Aucune requête de fusion associée trouvée
...@@ -22,10 +22,12 @@ class Comment ...@@ -22,10 +22,12 @@ class Comment
validates_presence_of :text validates_presence_of :text
def push_upstream def push_upstream
Rails.logger.info("GOIN UPSTREAM")
push_to([post.person]) push_to([post.person])
end end
def push_downstream def push_downstream
Rails.logger.info("SWIMMIN DOWNSTREAM")
push_to(post.people_with_permissions) push_to(post.people_with_permissions)
end end
......
...@@ -78,17 +78,17 @@ class Person ...@@ -78,17 +78,17 @@ class Person
def send_comment( c ) def send_comment( c )
if self.remote? if self.remote?
if c.post.person.owner.nil? 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 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 c.push_downstream
end end
else else
if owns? c.post 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 c.push_downstream
else 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 c.push_upstream
end end
end end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter