Skip to content

Commit

Permalink
require 'rufus-json/automatic'
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Aug 4, 2012
1 parent 2b60d49 commit a649f68
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions config.ru
Expand Up @@ -6,21 +6,17 @@ require 'bundler/setup'


# json

# make sure you have an entry like:w
#
# try yajl-ruby first, and json after that

begin
require 'yajl'
rescue LoadError
begin
require 'json'
rescue LoadError
puts 'Please specify "gem {yajl-ruby|json_pure|json}" in the Gemfile'
exit
end
end
# gem 'yajl-ruby', :require => 'yajl'
#
# or
# gem 'json', :require => 'yajl'
#
# in your Gemfile

require 'rufus-json'
require 'rufus-json/automatic'


# ruote-kit
Expand Down

0 comments on commit a649f68

Please sign in to comment.