numerex/i18n-active_record — pull request #1 by afast (2013-04-16 15:01:36+00:00)
Title: Search all translations for the exact key

Mysql returns lower and uppercase matches. If the first result doesn't match(in a case sensitive way) then the code assumes it must return a hash.

Since mysql may return the exact key at the end of the result array we have to check the entire result array for an exact match and only then can we assume a hash should be returned.