Prevent error when precompiling without entire rails environment