mongoid/mongoid — pull request #2718 by arthurnn (2013-01-18 19:53:23+00:00)
Title: Fixing session name when override_session globally  Fixes #2714

> When call Mongoid.override_session it was not changing the database_name in the models

> The logic to use session_override was on __session__ method, and not on __session_name__ method, so whoever was using __session_name__ was not necessarily getting the right name