-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering array objects that doesn't have serializers #962
Merged
joaomdmoura
merged 8 commits into
rails-api:master
from
joaomdmoura:render-array-objects
Jun 26, 2015
Merged
Rendering array objects that doesn't have serializers #962
joaomdmoura
merged 8 commits into
rails-api:master
from
joaomdmoura:render-array-objects
Jun 26, 2015
Commits on Jun 26, 2015
-
Configuration menu - View commit details
-
Copy full SHA for d589268 - Browse repository at this point
Copy the full SHA d589268View commit details -
Configuration menu - View commit details
-
Copy full SHA for 189b795 - Browse repository at this point
Copy the full SHA 189b795View commit details -
Add some failing tests around has_many assocs...
..where no serializer is defined for the thing that is has_many'd
Configuration menu - View commit details
-
Copy full SHA for 3710c32 - Browse repository at this point
Copy the full SHA 3710c32View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf77786 - Browse repository at this point
Copy the full SHA cf77786View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5d1e40 - Browse repository at this point
Copy the full SHA e5d1e40View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3649d5 - Browse repository at this point
Copy the full SHA d3649d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 741c4a4 - Browse repository at this point
Copy the full SHA 741c4a4View commit details -
Account for different handling of symbol keys in Rails 4.0
Comparing as a JSON string vs. as the Hash that is convert to JSON works around the different Hash representations. This likely has to do with the introduction of config.action_dispatch.perform_deep_munge in Rails 4.1 See Rails issue 13420 1) Failure: ActiveModel::Serializer::Adapter::Json::HasManyTestTest#test_has_many_with_no_serializer [active_model_serializers/test/adapter/json/has_many_test.rb:36]: --- expected +++ actual @@ -1 +1 @@ -{:id=>42, :tags=>[{"attributes"=>{"id"=>1, "name"=>"#hash_tag"}}]} +{:id=>42, :tags=>[{"attributes"=>{:id=>1, :name=>"#hash_tag"}}]} 2) Failure: ActiveModel::Serializer::AssociationsTest#test_has_many_with_no_serializer [active_model_serializers/test/serializers/associations_test.rb:74]: --- expected +++ actual @@ -1 +1 @@ -[{"attributes"=>{"name"=>"#hashtagged"}}] +[{"attributes"=>{:name=>"#hashtagged"}}]
Configuration menu - View commit details
-
Copy full SHA for 17d560e - Browse repository at this point
Copy the full SHA 17d560eView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.