NoamB/sorcery — pull request #375 by michihuber (2012-11-27 21:31:10+00:00)
Title: Bugfix: Infinite Loop in http basic auth

If the current controller couldn't be found in the
Config.controller_to_realm_map and the controller
didn't inherit from ActionController::Base,
#realm_name_by_controller would enter an infinite loop.

This commit makes the loop actually go through the
controller's ancestors, where it will eventually reach
ActionController::Base