discourse/discourse — pull request #2611 by kenyonj (2014-07-30 21:17:31+00:00)
Title: Refactor User model

This addresses the following:

- Consistent code styling
- limit lines to less than 80 characters
- moving class methods to the top of the class
- separating blocks from surrounding code
- remove some unnecessary comments
- Removal of `self.[variable_name]` usage unless it is used in assignment
- Removal of confusing ternary if statements and surprise unless/if
conditionals