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

Change multipart handling to check for object#read instead of specific object types #24

Merged
merged 3 commits into from
Mar 28, 2013

Conversation

legolin
Copy link
Contributor

@legolin legolin commented Mar 28, 2013

This change allows passing params[:file] in a Rails 3.2 upload directly into Nestful's post function (Rails 3.2 wraps the uploaded file in yet another object type). Really all we need to know is whether the object responds to read, in other words; does it act like a StringIO object?

The changeset has a bunch of deleted whitespace because SublimeText strips extra whitespace out of blank lines automatically.

Edit: I just saw that this pull request has two unnecessary commits (which don't change anything, overall). Feel free to reject it and make the changes yourself in a cleaner way if you prefer.

maccman added a commit that referenced this pull request Mar 28, 2013
Change multipart handling to check for object#read instead of specific object types
@maccman maccman merged commit 092339f into maccman:master Mar 28, 2013
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.

2 participants