Skip to content

Commit

Permalink
fixed io stream close issue and added feature for embeding external s…
Browse files Browse the repository at this point in the history
…tyle sheet
  • Loading branch information
Amar Daxini committed Oct 21, 2011
1 parent 08a8633 commit 25b311f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/acts_as_flying_saucer/acts_as_flying_saucer_controller.rb
Expand Up @@ -37,9 +37,9 @@ def render_pdf(options = {})
tidy_clean = options[:clean] || false
self.pdf_mode = :create
if defined?(Rails)
html = render_to_string options
host = ActionController::Base.asset_host
host = ActionController::Base.asset_host
ActionController::Base.asset_host = request.protocol + request.host_with_port if host.blank?
html = render_to_string options
if options[:debug_html]
# ActionController::Base.asset_host = host
response.header["Content-Type"] = "text/html; charset=utf-8"
Expand Down
2 changes: 1 addition & 1 deletion lib/acts_as_flying_saucer/version.rb
@@ -1,3 +1,3 @@
module ActsAsFlyingSaucer
VERSION = "0.0.7"
VERSION = "0.0.8"
end

0 comments on commit 25b311f

Please sign in to comment.