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

JSON.pretty_generate makes better diffs #75

Merged
merged 1 commit into from
Jun 24, 2013

Conversation

jacobo
Copy link
Contributor

@jacobo jacobo commented Jun 18, 2013

as in, when you are committing the generated json blobs to git

@@ -39,16 +41,16 @@ def examples
@index.examples.map { |example| JsonExample.new(example, @configuration) }
end

def to_json
def as_json(opts = nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not entirely sure I like the switch from #to_json to #as_json. I don't like assuming we're in a active support environment.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, it's for the JSON.pretty_generate. Scratch my previous comment.

oestrich added a commit that referenced this pull request Jun 24, 2013
JSON.pretty_generate makes better diffs
@oestrich oestrich merged commit 9e0af39 into zipmark:master Jun 24, 2013
@oestrich
Copy link
Contributor

Thanks for the pull request! This is definitely much nicer than the huge blob it used to have.

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