diff options
Diffstat (limited to 'railties/configs/initializers/new_rails_defaults.rb')
-rw-r--r-- | railties/configs/initializers/new_rails_defaults.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/configs/initializers/new_rails_defaults.rb b/railties/configs/initializers/new_rails_defaults.rb index 0cc1993ed9..d10b16b06e 100644 --- a/railties/configs/initializers/new_rails_defaults.rb +++ b/railties/configs/initializers/new_rails_defaults.rb @@ -3,3 +3,9 @@ # Only save the attributes that have changed since the record was loaded. ActiveRecord::Base.partial_updates = true + +# Include ActiveRecord class name as root for JSON serialized output. +ActiveRecord::Base.include_root_in_json = true + +# Use ISO 8601 format for JSON serialized times and dates +ActiveSupport.use_standard_json_time_format = true
\ No newline at end of file |