Skip to content
Browse files

Merge pull request #2 from schofield/multijson_deprecation

fixes multi_json deprecation messages for encode and decode
  • Loading branch information...
2 parents f6d9b39 + 69a4960 commit 41ca644e67ac879097e66a5ba84f6d7cd7ec4b7e @aphyr committed Jul 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/risky.rb
View
4 lib/risky.rb
@@ -418,7 +418,7 @@ def load_riak_object(riak_object, opts = {:merge => true})
self.merged = true
else
# Not merging
- self.values = self.class.cast(MultiJson.decode(riak_object.raw_data)) rescue {}
+ self.values = self.class.cast(MultiJson.load(riak_object.raw_data)) rescue {}
self.class.values.each do |k, v|
if values[k].nil?
values[k] = (v[:default].clone rescue v[:default])
@@ -495,7 +495,7 @@ def save(opts = {})
return false unless valid?
end
- @riak_object.raw_data = MultiJson.encode @values
+ @riak_object.raw_data = MultiJson.dump @values
@riak_object.content_type = "application/json"
store_opts = {}

0 comments on commit 41ca644

Please sign in to comment.
Something went wrong with that request. Please try again.