Fix models loading for Rails 4.