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.