rubycas/rubycas-server — pull request #226 by davexunit (2014-09-15 12:21:45+00:00)
Title: Fix how SQLAuthLogic and SQLRestAuth fetch their user model class.

I have not tested this because I'm about to get on a bus, but I believe this patch will fix issue #225 or at least approximate the correct patch. The class method `user_model` has been replaced with `user_models`, which is a hash that keys user models classes by an authenticators `auth_index`. The base SQL authenticator has a method called `auth_index` to fetch the index from the `@options` hash.

Could someone try it out?