enabling flatten json as default adapter

This commit is contained in:
João Moura 2015-06-15 13:49:24 -03:00
parent 1ea5608e78
commit d061b2e9f4
2 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,7 @@ module ActiveModel
included do |base|
base.config.array_serializer = ActiveModel::Serializer::ArraySerializer
base.config.adapter = :json
base.config.adapter = :flatten_json
end
end
end

View File

@ -20,7 +20,6 @@ class Foo < Rails::Application
config.active_support.test_order = :random
config.logger = Logger.new(nil)
ActionController::Base.cache_store = :memory_store
ActiveModel::Serializer.config.adapter = :flatten_json
end
end
FileUtils.mkdir_p(File.expand_path('../../tmp/cache', __FILE__))