rtomayko/replicate — pull request #27 by ktheory (2013-05-09 02:33:45+00:00)
Title: Use constantize instead of const_get

Fixes NameErrors when an associated model is namespaced.

E.g.
belongs_to :bar, class_name: 'Foo::Bar'