Skip to content

Instantly share code, notes, and snippets.

@sixty4bit
Created April 29, 2009 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sixty4bit/103575 to your computer and use it in GitHub Desktop.
Save sixty4bit/103575 to your computer and use it in GitHub Desktop.
class InquireyResponseHandler < ActionMailer::Base
def receive(email)
user = User.find_by_email(email.from[0])
Mood.create :message => email.body, :user => user
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment