Fixed broken acossiations in Rails 4.