render nothing at the top
This commit is contained in:
parent
10aef7a0a3
commit
4cd46abaac
1 changed files with 2 additions and 1 deletions
|
|
@ -22,14 +22,15 @@ class PublicsController < ApplicationController
|
|||
end
|
||||
|
||||
def receive
|
||||
render :nothing => true
|
||||
begin
|
||||
@user = Person.first(:id => params[:id]).owner
|
||||
rescue NoMethodError => e
|
||||
Rails.logger.error("Received post #{params[:xml]} for nonexistent person #{params[:id}")
|
||||
return
|
||||
end
|
||||
Rails.logger.debug "PublicsController has received: #{params[:xml]}"
|
||||
@user.receive params[:xml] if params[:xml]
|
||||
render :nothing => true
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue