I'm still very new to Ruby/Rails so forgive me if this is something obvious (I've googled but can't seem to find anything that helps). When I run my app under RubyMine, everything works fine, no issues. When I try to "Debug", my app crashes from what can only guess that it's not loading resources the same way as it does when running. I receive this error:
Uncaught exception: uninitialized constant Temp::RevenovaId
This is hit in a file that is using ActiveAdmin, it's trying to register the class Temp::RevenovaId but I'm assuming it's not loaded so it blows up with the constant error message. I've tried adding a require to the top of this class, it errors out by saying it can't load this file. I've tried running RubyMine under sudo, still the same issue.
I've tried disabling/enabling Spring under the Debugging Preferences, still does not work.
I have set breakpoints further up the chain (for instance in the development.rb file) and these breakpoints are hit, but when I let the app continue to run it blows up at that same point.
I'm not understanding why it runs fine without the debugger, and even in production, but when I run under the debugger it does not work.
Any help provided would be greatly appreciated!
Thank you so much!