Handle Rails load order issue with generator