Skip to content

Instantly share code, notes, and snippets.

@saiqulhaq
Created June 15, 2019 06:00
Show Gist options
  • Save saiqulhaq/03092a2a37526bd9f247215a697930fe to your computer and use it in GitHub Desktop.
Save saiqulhaq/03092a2a37526bd9f247215a697930fe to your computer and use it in GitHub Desktop.
Debug Rails autoload issue

If you read this post, I bet you are getting issue with autoload feature on rails that raises an error on your code and you don't know when or who is triggering the autoload. So, to fix this, just put

puts caller

on your ruby file to check why your ruby file is being autoloaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment