Skip to content

Commit 0bb97b3

Browse files
committed
reverse dump/load :/
1 parent c0f6c32 commit 0bb97b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/resque/multi_json_coder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module Resque
1414
class MultiJsonCoder < Coder
1515
def encode(object)
1616
if MultiJson.respond_to?(:dump) && MultiJson.respond_to?(:load)
17-
MultiJson.load object
17+
MultiJson.dump object
1818
else
1919
MultiJson.encode object
2020
end
@@ -25,7 +25,7 @@ def decode(object)
2525

2626
begin
2727
if MultiJson.respond_to?(:dump) && MultiJson.respond_to?(:load)
28-
MultiJson.dump object
28+
MultiJson.load object
2929
else
3030
MultiJson.decode object
3131
end

0 commit comments

Comments
 (0)