Skip to content

Commit d061b2e

Browse files
committed
enabling flatten json as default adapter
1 parent 1ea5608 commit d061b2e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/active_model/serializer/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Configuration
66

77
included do |base|
88
base.config.array_serializer = ActiveModel::Serializer::ArraySerializer
9-
base.config.adapter = :json
9+
base.config.adapter = :flatten_json
1010
end
1111
end
1212
end

test/test_helper.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class Foo < Rails::Application
2020
config.active_support.test_order = :random
2121
config.logger = Logger.new(nil)
2222
ActionController::Base.cache_store = :memory_store
23-
ActiveModel::Serializer.config.adapter = :flatten_json
2423
end
2524
end
2625
FileUtils.mkdir_p(File.expand_path('../../tmp/cache', __FILE__))

0 commit comments

Comments
 (0)