Last Updated: February 25, 2016
·
732
· hasanen

TIL: Rails, threadsafe and rake tasks

If you want to use your rails models in rake tasks and you have enabled threadsafe in environments config, you have to also enable dependency loading with config.dependency_loading = true if $rails_rake_task.