Skip to content

Commit d85097d

Browse files
committed
OkJson won't work, raise if it's in use.
1 parent bdf4f5f commit d85097d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/resque/helpers.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
require 'multi_json'
22

3+
# OkJson won't work because it doesn't serialize symbols
4+
# in the same way yajl and json do.
5+
if MultiJson.engine.to_s == 'MultiJson::Engines::OkJson'
6+
raise "Please install the yajl-ruby or json gem"
7+
end
8+
39
module Resque
410
# Methods used by various classes in Resque.
511
module Helpers

0 commit comments

Comments
 (0)