VRFS-2552 removed config.json_engine due to this error: undefined method key? JSON::Ext::Generator::State

This commit is contained in:
Jonathan Kolyer 2015-01-01 18:00:43 +00:00
parent 8a84ff5609
commit e8fd6360aa
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ Rabl.configure do |config|
# config.cache_engine = Rabl::CacheEngine.new # Defaults to Rails cache # config.cache_engine = Rabl::CacheEngine.new # Defaults to Rails cache
# config.escape_all_output = false # config.escape_all_output = false
# config.json_engine = nil # Any multi_json engines or a Class with #encode method # config.json_engine = nil # Any multi_json engines or a Class with #encode method
config.json_engine = PrettyJson if Rails.env.development? # config.json_engine = PrettyJson if Rails.env.development?
# config.msgpack_engine = nil # Defaults to ::MessagePack # config.msgpack_engine = nil # Defaults to ::MessagePack
# config.bson_engine = nil # Defaults to ::BSON # config.bson_engine = nil # Defaults to ::BSON
# config.plist_engine = nil # Defaults to ::Plist::Emit # config.plist_engine = nil # Defaults to ::Plist::Emit
@ -24,4 +24,4 @@ Rabl.configure do |config|
# config.enable_json_callbacks = false # config.enable_json_callbacks = false
# config.xml_options = { :dasherize => true, :skip_types => false } # config.xml_options = { :dasherize => true, :skip_types => false }
config.view_paths << Rails.root.join('app/views') config.view_paths << Rails.root.join('app/views')
end end