Missing argument 'options' in RubyMine IDE
How can i avoid passing mode: :compat argument for Oj.load and Oj.dump ?
This is what i got right now: Oj.load(json, mode: :compat)
This is what i'm looking to achieve: Oj.load(json)
But my RubyMine IDE is throwing error "Missing argument 'options'"
I've tried creating initializer with Oj.default_options = {:mode => :compat } but still get error from IDE.

Sounds like a bug in RubyMine. The second argument is optional.
Well i figured it out. In Oj version 3.10.5 the second argument is required although in version 3.10.6 second argument is optional. I updated version of Oj and the problem is not relevant anymore.
That is odd. That code hasn't changed in a very long time.
Hm. This is what my IDE looks for.
3.10.6
3.10.5

Well i don't see any changelog changes from 3.10.5 to 3.10.6 that might affect this. Probably RubyMine bug.
I don't know where that file, oj.rb is from. It is not part of the Oj gem. Maybe RubyMine generates it from the documentation in the C source file or from the generated docs.