discourse/discourse — pull request #1332 by locks (2013-08-15 00:30:11+00:00)
Title: User email observer (Code Climate improvements)

I'm opening this up for discussion.

You can see the rating [improvement from an F to an A](https://codeclimate.com/github/locks/discourse) (I had to put the commits on my master branch so CC would pick it up).

I still haven't squased the commits to make it easier to follow my train of thought.
I just got an email from Travis (godsend, it is) warning me I basically broke all UserEmailObserver tests. I wouldn't mind a code review while I fix the tests.

**Tasks**
- [ ] Fix [failing tests](https://travis-ci.org/locks/discourse/builds/10222442)
- [ ] Squash commits
- [ ] Sign CLA