Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

reverse dump/load :/

  • Loading branch information...
commit 0bb97b345e07d51596575d55ec3cfef0a72d6550 1 parent c0f6c32
@hone hone authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/resque/multi_json_coder.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.