remove "config.dependency_loading = true if $rails_rake_task" from config/application.rb