From 76eda2fc21dfe16fb470a235edacbed06f608d59 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Fri, 7 Jul 2017 21:12:16 +0900 Subject: [PATCH] Add recursive object support to API response (#4095) --- config/initializers/active_model_serializers.rb | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 config/initializers/active_model_serializers.rb diff --git a/config/initializers/active_model_serializers.rb b/config/initializers/active_model_serializers.rb new file mode 100644 index 0000000000..b0230267d4 --- /dev/null +++ b/config/initializers/active_model_serializers.rb @@ -0,0 +1,3 @@ +ActiveModelSerializers.config.tap do |config| + config.default_includes = '**' +end