Use constantize instead of const_get

Fixes NameErrors when an associated model is namespaced.

E.g.
    belongs_to :bar, class_name: 'Foo::Bar'