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

fix for #47 - upload button doesnt work on rails; #139

Closed
wants to merge 2 commits into from
Closed

fix for #47 - upload button doesnt work on rails; #139

wants to merge 2 commits into from

Conversation

timgluz
Copy link
Contributor

@timgluz timgluz commented Aug 7, 2014

Hi,
here is cleaned up and tested version of fix for issue #47 .

Yes, it's just one line and it's caused by fact that Rails uses Hash instead of 'Rack::Multipart::UploadedFile'.

And i closed my previous PR #48 - as it's not relevant anymore.

@@ -224,9 +224,11 @@ def as_markdown(description)
end

def parse_params(params, path, method)
accepted_file_classes = ['Rack::Multipart::UploadedFile', 'Hash'] # 1.st for Rack, 2nd for Rails
Copy link
Member

Choose a reason for hiding this comment

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

This should be a CONSTANT.

@dblock
Copy link
Member

dblock commented Aug 8, 2014

Please add a line to CHANGELOG and fix the build (Rubocop). Thank you.

@dblock
Copy link
Member

dblock commented Aug 17, 2014

Merged squashed via tim-vandecasteele@04566fc. Thank you.

@dblock dblock closed this Aug 17, 2014
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