Fixes issue causing errors on some response objects, such as Rack::File #2

Merged
merged 1 commit into from Nov 16, 2012

Projects

None yet

2 participants

This fixes an issue causing errors on some response objects, such as Rack::File.

The problem is that #first isn't guaranteed to be defined on the Rack response object (as is assumed in Assets.rb). You see this with Rack::File responses, for instance.

The Rack spec does guarantee an #each method though. So pull request augments the response with a #first method that uses #each.

@mrbrdo mrbrdo merged commit b5159eb into mrbrdo:master Nov 16, 2012

1 check passed

default The Travis build passed
Details
Owner
mrbrdo commented Nov 16, 2012

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment