acts_as_flying_saucer 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -38,6 +38,8 @@ module ActsAsFlyingSaucer
|
|
38
38
|
self.pdf_mode = :create
|
39
39
|
if defined?(Rails)
|
40
40
|
html = render_to_string options
|
41
|
+
host = ActionController::Base.asset_host
|
42
|
+
ActionController::Base.asset_host = request.protocol + request.host_with_port if host.blank?
|
41
43
|
if options[:debug_html]
|
42
44
|
# ActionController::Base.asset_host = host
|
43
45
|
response.header["Content-Type"] = "text/html; charset=utf-8"
|
@@ -79,7 +81,9 @@ module ActsAsFlyingSaucer
|
|
79
81
|
output_file = op
|
80
82
|
end
|
81
83
|
# restoring the host
|
82
|
-
|
84
|
+
if defined?(Rails)
|
85
|
+
ActionController::Base.asset_host = host
|
86
|
+
end
|
83
87
|
|
84
88
|
# sending the file to the client
|
85
89
|
if options[:send_file]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_flying_saucer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Amar Daxini
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-05-20 00:00:00 +05:30
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|