Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Overwrites oj options #53

Closed
krainboltgreene opened this Issue May 28, 2012 · 4 comments

Comments

Projects
None yet
2 participants

https://github.com/intridea/multi_json/blob/master/lib/multi_json/adapters/oj.rb

This overwrites the Oj default options and doesn't allow custom options to be set.

Similarly there's also this problem: ohler55/oj#20

Member

sferik commented May 28, 2012

In general, passing through adapter-specific options is not advised. If you ever switch your adapter, the behavior may change. That said, I think it should be possible to do this, even if unadvisable.

Out of curiosity, what Oj-specific options are you trying to pass through MultiJson?

@sferik sferik closed this in d0e5fee May 28, 2012

Member

sferik commented May 28, 2012

Fixed and released in version 1.3.6.

In ohler55/oj#20 it would be a workaround to set mode to :object until that problem is fixed.

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