Skip to content

Commit

Permalink
fix(resque-status): fix multi_json error when it choses ok_json adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
take-five committed Jul 3, 2013
1 parent 4995e5f commit 87b113a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/resque-status
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
# Скрипт для мониторинга состояния resque

require 'rubygems'
gem 'resque-integration'

%w(oj yajl-ruby json gson).each do |library|
begin
gem(library) and break
rescue Gem::LoadError
# ignore, go to next adapter
end
end

require 'resque'
require 'redis'
Expand Down

0 comments on commit 87b113a

Please sign in to comment.