Skip to content
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

Remove default key case change message #1752

Merged
merged 1 commit into from
May 26, 2016

Conversation

remear
Copy link
Member

@remear remear commented May 26, 2016

Purpose

Removes the post install message that warned the default key case for the json_api adapter had changed.

@NullVoxPopuli
Copy link
Contributor

LGTM

spec.post_install_message = <<-EOF
NOTE: The default key case for the JsonApi adapter has changed to dashed.
See https://github.com/rails-api/active_model_serializers/blob/master/docs/general/key_transforms.md
for more information on configuring this behavior.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might want to include that it's a performance hit, and to use ActiveModelSerializers.config.key_transform = :unaltered if you don't need it :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does that need to be in the post install message though? or our docs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs, IMO.

@NullVoxPopuli NullVoxPopuli merged commit 4de8d8c into rails-api:master May 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants