Permalink
Browse files

reverse dump/load :/

  • Loading branch information...
hone committed May 3, 2012
1 parent c0f6c32 commit 0bb97b345e07d51596575d55ec3cfef0a72d6550
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/resque/multi_json_coder.rb
@@ -14,7 +14,7 @@ module Resque
class MultiJsonCoder < Coder
def encode(object)
if MultiJson.respond_to?(:dump) && MultiJson.respond_to?(:load)
- MultiJson.load object
+ MultiJson.dump object
else
MultiJson.encode object
end
@@ -25,7 +25,7 @@ def decode(object)
begin
if MultiJson.respond_to?(:dump) && MultiJson.respond_to?(:load)
- MultiJson.dump object
+ MultiJson.load object
else
MultiJson.decode object
end

0 comments on commit 0bb97b3

Please sign in to comment.