MS nuked some random non helpful puts statements
This commit is contained in:
parent
261a7d177d
commit
2cbdc5413f
5 changed files with 1 additions and 7 deletions
|
|
@ -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
|
||||||
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
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
|
||||||
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 @@
|
||||||
%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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue