Skip to content
This repository
Browse code

now for some delicious debugging

  • Loading branch information...
commit ad5cc792b6ef88e69779741b7f48aa00c53b8d93 1 parent b524f9b
ntlk ntlk authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 app/controllers/listener_controller.rb
8 app/controllers/listener_controller.rb
@@ -6,11 +6,11 @@ def receive_email
6 6 # do i need this? *scratches head*
7 7 @params = params
8 8
9   - sent_to = params["to"].split('@')
10   - message_id = sent_to[0].split('.')[0]
  9 + puts sent_to = params["to"].split('@')
  10 + puts message_id = sent_to[0].split('.')[0]
11 11 email_message = EmailMessage.find_by_message_id(message_id)
12   - person = email_message.person
13   - project = email_message.project
  12 + puts person = email_message.person
  13 + puts project = email_message.project
14 14 @update = Update.new(:body => params["text"], :email_message_id => email_message.id, :person_id => person.id, :project_id => project.id)
15 15
16 16 respond_to do |format|

0 comments on commit ad5cc79

Please sign in to comment.
Something went wrong with that request. Please try again.