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
.
Written by Joni Hasanen
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#