We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ea5608 commit d061b2eCopy full SHA for d061b2e
lib/active_model/serializer/configuration.rb
@@ -6,7 +6,7 @@ module Configuration
6
7
included do |base|
8
base.config.array_serializer = ActiveModel::Serializer::ArraySerializer
9
- base.config.adapter = :json
+ base.config.adapter = :flatten_json
10
end
11
12
test/test_helper.rb
@@ -20,7 +20,6 @@ class Foo < Rails::Application
20
config.active_support.test_order = :random
21
config.logger = Logger.new(nil)
22
ActionController::Base.cache_store = :memory_store
23
- ActiveModel::Serializer.config.adapter = :flatten_json
24
25
26
FileUtils.mkdir_p(File.expand_path('../../tmp/cache', __FILE__))
0 commit comments