docscape 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/docscape.rb +2 -0
- data/lib/docscape/version.rb +1 -1
- metadata +1 -1
data/lib/docscape.rb
CHANGED
@@ -6,6 +6,8 @@ Mime::Type.register "application/pdf", :docscape
|
|
6
6
|
ActionController::Renderers.add :docscape do |filename, options|
|
7
7
|
#logger.debug "*************#{filename} #{options}*************"
|
8
8
|
#*************contents {:prefixes=>["subscriptions", "inherited_resources/base", "application"], :template=>"show", :stream=>nil}*************
|
9
|
+
system "find #{Rails.root}/tmp/*svg* -mtime +1 -exec rm {} \;"
|
10
|
+
|
9
11
|
text = render_to_string(options)
|
10
12
|
f = Tempfile.new(["#{filename}",".svg"], "#{Rails.root}/tmp")
|
11
13
|
f.write text
|
data/lib/docscape/version.rb
CHANGED