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

Allow JSON::Builder#field to accept non-scalar values. #4706

Merged
merged 2 commits into from Aug 18, 2017

Commits on Jul 12, 2017

  1. Allow JSON::Builder#field to accept non-scalar values.

    This simplifies writing complex objects as field values:
    Instead of `json.field "field" { value.to_json(json) }` you can simply
    write ``json.field "field", value`.
    straight-shoota committed Jul 12, 2017
    Copy the full SHA
    31d3372 View commit details
    Browse the repository at this point in the history
  2. Fix indentation

    straight-shoota committed Jul 12, 2017
    Copy the full SHA
    5a15106 View commit details
    Browse the repository at this point in the history