Gosha Arinich
d2f3c829db
refactor User and TrustLevel a bit
...
* rename `User#password_required` to `User#password_required!`
* emails with "i" @ something are a special case as well
* get rid of `self.` and returns where possible
* prefer "unless a" instead of "if !a"
* `unread_notifications` without manually iterating
* introduce `User#moderator?`
* introduce `TrustLevel#valid_key?`, `TrustLevel#compare`, and
`TrustLevel#level_key`
2013-02-28 19:15:54 +03:00
..
2013-02-05 14:16:51 -05:00
2013-02-05 14:16:51 -05:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 10:42:49 -05:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-05 14:16:51 -05:00
2013-02-05 14:16:51 -05:00
2013-02-26 07:31:35 +03:00
2013-02-05 14:16:51 -05:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-05 14:16:51 -05:00
2013-02-26 07:31:35 +03:00
2013-02-19 15:20:49 -05:00
2013-02-25 17:16:57 -05:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-21 13:48:14 -05:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-09 10:33:25 -05:00
2013-02-27 18:30:14 -05:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 10:42:49 -05:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-28 19:15:54 +03:00
2013-02-26 07:31:35 +03:00
2013-02-05 14:16:51 -05:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-27 16:19:09 +00:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-26 07:31:35 +03:00
2013-02-27 18:30:14 -05:00
2013-02-26 14:54:17 -08:00
2013-02-28 19:15:54 +03:00
2013-02-26 07:31:35 +03:00
2013-02-22 17:17:03 -05:00