Permalink
Browse files

Sinatra::Response no longer has a #join method.

It was wrong to assume it had one to begin with; according to the
rack spec, the response body has #each but not necessarily
any other enumerable or array methods.
  • Loading branch information...
1 parent ce0f0f8 commit 83998801be7aaa3fd745effa051cbe6691b19df7 @myronmarston myronmarston committed Jan 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/interpol/documentation_app.rb
View
2 lib/interpol/documentation_app.rb
@@ -16,7 +16,7 @@ def render_static_page(&block)
require 'rack/mock'
app = build(&block)
status, headers, body = app.call(Rack::MockRequest.env_for "/", :method => "GET")
- AssetInliner.new(body.join, app.public_folder).standalone_page
+ AssetInliner.new(body.enum_for(:each).to_a.join, app.public_folder).standalone_page
end
# Inlines the assets so the page can be viewed as a standalone web page.

0 comments on commit 8399880

Please sign in to comment.