Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Matthew Higgins's Profile

GitHub User: matthuhiggins

Site: matthewhiggins.com

Comments by Matthew Higgins

Avatar

The problem is caused by preloading ActiveRecord during initialization, not FactoryGirl. You probably are using a gem that does not use ActiveSupport.on_load correctly, or one of your initializers references ActiveRecord::Base. That's bad.

Avatar

Hmm, I think I would do this instead of the imports:

/*
*require layout
*require projects
*/

Reasons: The files get recompiled on refresh and you don't need to specify the extension.