Replace yajl by oj

This commit is contained in:
ccocchi 2012-09-20 18:45:46 +02:00
parent a347ebcf5b
commit 9891d09322
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ source "http://rubygems.org"
gemspec gemspec
gem 'yajl-ruby' gem 'oj'
gem 'libxml-ruby' gem 'libxml-ruby'
group :test do group :test do

View File

@ -83,7 +83,7 @@ After the template is compiled into a hash, Rabl-rails will use a renderer to do
## Configuration ## Configuration
RablRails works out of the box, with default options and fastest engine available (yajl, libxml). But depending on your needs, you might want to change that or how your output looks like. You can set global configuration in your application: RablRails works out of the box, with default options and fastest engine available (oj, libxml). But depending on your needs, you might want to change that or how your output looks like. You can set global configuration in your application:
```ruby ```ruby
# config/initializers/rabl_rails.rb # config/initializers/rabl_rails.rb
@ -91,7 +91,7 @@ RablRails works out of the box, with default options and fastest engine availabl
# These are the default # These are the default
# config.cache_templates = true # config.cache_templates = true
# config.include_json_root = true # config.include_json_root = true
# config.json_engine = :yajl # config.json_engine = :oj
# config.xml_engine = 'LibXML' # config.xml_engine = 'LibXML'
end end
``` ```