unmantained-activeadmin-plugins / activeadmin-wysihtml5

MIT License
87 stars 91 forks source link

Use rack.input's read or string when appropriate. #6

Closed tomeduarte closed 11 years ago

tomeduarte commented 11 years ago

Hello,

The rack spec support's read instead of string, which is causing errors with this gem when deploying with application servers like Phusion Passenger and NGINX.

While Thin uses string just fine (e.g localhost development), deploying with NGINX is giving me this error: NoMethodError (undefined method 'string' for #<Unicorn::TeeInput traced back to this line.

The attached commits check if string is available and default to read if it's not.

References:  

stefanoverna commented 11 years ago

Thanks @tomeduarte!

tomeduarte commented 11 years ago

@stefanoverna not at all :smiley: