Skip to content
Extraits de code Groupes Projets
Valider 2cbdc541 rédigé par maxwell's avatar maxwell
Parcourir les fichiers

MS nuked some random non helpful puts statements

parent 261a7d17
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -4,9 +4,7 @@ class CommentsController < ApplicationController ...@@ -4,9 +4,7 @@ class CommentsController < ApplicationController
def create def create
target = Post.first(:id => params[:comment][:post_id]) target = Post.first(:id => params[:comment][:post_id])
text = params[:comment][:text] text = params[:comment][:text]
puts params.inspect
if current_user.comment text, :on => target if current_user.comment text, :on => target
render :text => "Woo!" render :text => "Woo!"
else else
......
...@@ -27,7 +27,6 @@ class RequestsController < ApplicationController ...@@ -27,7 +27,6 @@ class RequestsController < ApplicationController
def create def create
rel_hash = relationship_flow(params[:request][:destination_url]) rel_hash = relationship_flow(params[:request][:destination_url])
Rails.logger.info("Sending request: #{rel_hash}") Rails.logger.info("Sending request: #{rel_hash}")
puts rel_hash
@request = current_user.send_request(rel_hash) @request = current_user.send_request(rel_hash)
if @request if @request
......
...@@ -14,7 +14,6 @@ class SocketsController < ApplicationController ...@@ -14,7 +14,6 @@ class SocketsController < ApplicationController
def outgoing(object) def outgoing(object)
@_request = ActionDispatch::Request.new({}) @_request = ActionDispatch::Request.new({})
puts action_hash(object)
WebSocket.push_to_clients(action_hash(object)) WebSocket.push_to_clients(action_hash(object))
end end
......
...@@ -94,7 +94,6 @@ class User < Person ...@@ -94,7 +94,6 @@ class User < Person
def send_request(rel_hash) def send_request(rel_hash)
puts rel_hash.inspect
if rel_hash[:friend] if rel_hash[:friend]
self.send_friend_request_to(rel_hash[:friend]) self.send_friend_request_to(rel_hash[:friend])
elsif rel_hash[:subscribe] elsif rel_hash[:subscribe]
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
%h3= my_latest_message %h3= my_latest_message
= render "shared/publisher" = render "shared/publisher"
%ul#stream %ul#stream
= puts @posts.inspect
- for post in @posts - for post in @posts
= render type_partial(post), :post => post = render type_partial(post), :post => post
#pagination #pagination
......
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