norman/friendly_id — pull request #264 by shioyama (2012-04-10 15:12:19+00:00)
Title: test and fix using translations.reload for dynamic finder results from translated slug using globalize

There is a problem I encountered earlier in Globalize with results from dynamic finders on translated attributes not returning the full set of translations, which can result in (among other things) translations being left behind in the DB after a record is destroyed.

For reference, see: https://github.com/svenfuchs/globalize3/issues/100

I've basically applied the same fix as I did to globalize3. I'm sure there must be a better way to fix this than reloading the translations each time a record is found, but I haven't had time to dig any deeper into the problem.

BTW, the test here passes with `joins` instead of `includes`, as it was previous to commit 410c0ace15 by @schiza.