svenfuchs/globalize3 — pull request #180 by scambra (2012-12-10 14:56:00+00:00)
Title: Fix class_name in belongs_to when model is namespaced

In refinerycms, page model is translated, but it's namespaced as Refinery::Page. If I load Refinery::Page::Translation and try to get the refinery_page, I get:
> Refinery::Page::Translation.first.refinery_page
NameError: uninitialized constant Refinery::Page::Translation::RefineryPage

Redefining association to set right class name, it works:
> Refinery::Page::Translation.belongs_to 'refinery_page', :class_name => Refinery::Page.name
> Refinery::Page::Translation.first.refinery_page