diff options
author | Anthony <alberto.anthony@gmail.com> | 2012-07-27 15:13:05 -0400 |
---|---|---|
committer | Anthony Alberto <alberto.anthony@gmail.com> | 2012-08-13 19:14:24 -0700 |
commit | 78f5874c82ed50d405cbe1ae9a9e75b7b2ae8ef5 (patch) | |
tree | 00b6bbfd47d4ded0fa16544cf736bffe727a8336 /activemodel/CHANGELOG.md | |
parent | 2d9dbf416b14610cc21fc10e68700c3a7ffc32a3 (diff) | |
download | rails-78f5874c82ed50d405cbe1ae9a9e75b7b2ae8ef5.tar.gz rails-78f5874c82ed50d405cbe1ae9a9e75b7b2ae8ef5.tar.bz2 rails-78f5874c82ed50d405cbe1ae9a9e75b7b2ae8ef5.zip |
Following the false issue reporting I did here : https://github.com/rails/rails/issues/6958
- Enable propagation of :skip_types, :dasherize and :camelize on included models by default
- Adding the option to override this propagation on a per-include basis (:include => { :model => { :dasherize => false } }
- Enough tests to prove it works
- Updated activemodel CHANGELOG.md
Squashed my commits
Diffstat (limited to 'activemodel/CHANGELOG.md')
-rw-r--r-- | activemodel/CHANGELOG.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md index 9188719b78..12e0956d3c 100644 --- a/activemodel/CHANGELOG.md +++ b/activemodel/CHANGELOG.md @@ -1,5 +1,7 @@ ## Rails 4.0.0 (unreleased) ## +* Changed `ActiveModel::Serializers::Xml::Serializer#add_associations` to by default propagate `:skip_types, :dasherize, :camelize` keys to included associations. It can be overriden on each association by explicitly specifying the option on one or more associations *Anthony Alberto* + * Changed `AM::Serializers::JSON.include_root_in_json' default value to false. Now, AM Serializers and AR objects have the same default behaviour. Fixes #6578. |