Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix NPE when passing adapter in load/dump options #125

Closed
wants to merge 1 commit into from

2 participants

@chetan

Fixes #123

@coveralls

Coverage Status

Coverage increased (+0%) when pulling 69331fb on chetan:patch-1 into bcf433d on intridea:master.

@rwz rwz closed this pull request from a commit
@rwz rwz Reimplement options caching
fix #123
fix #125
957aa7d
@rwz rwz closed this in 957aa7d
@rwz rwz referenced this pull request from a commit
@rwz rwz Fix option caching issues
fix #123
fix #125
a3f14c3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 6, 2013
  1. @chetan
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/multi_json.rb
View
4 lib/multi_json.rb
@@ -138,7 +138,9 @@ def load(string, options={})
def current_adapter(options={})
if new_adapter = options[:adapter]
- load_adapter(new_adapter)
+ a = load_adapter(new_adapter)
+ a.activate!
+ a
else
adapter
end
Something went wrong with that request. Please try again.