NoamB/sorcery — pull request #316 by ckruse (2012-07-07 17:37:27+00:00)
Title: Bugfix in user loading when restoring from session

When loading the user from a session you call `find_by_id` on the model class. But the primary key is not necessarily named `id` which leads to an „method find_by_id not found“ exception when calling `current_user`. Calling `find` instead is better, because it always works on the primary key.