Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
OkJson won't work, raise if it's in use.
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Jul 14, 2011
1 parent bdf4f5f commit d85097d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/resque/helpers.rb
@@ -1,5 +1,11 @@
require 'multi_json'

# OkJson won't work because it doesn't serialize symbols
# in the same way yajl and json do.
if MultiJson.engine.to_s == 'MultiJson::Engines::OkJson'
raise "Please install the yajl-ruby or json gem"
end

module Resque
# Methods used by various classes in Resque.
module Helpers
Expand Down

0 comments on commit d85097d

Please sign in to comment.