Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 83998801be7aaa3fd745effa051cbe6691b19df7 1 parent ce0f0f8
@myronmarston myronmarston authored
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.
Please sign in to comment.
Something went wrong with that request. Please try again.