Skip to content

Commit

Permalink
Add modified workaround from http://codefluency.lighthouseapp.com/pro…
Browse files Browse the repository at this point in the history
…jects/11492/tickets/9-support-rails-22#ticket-9-4

* Note: This may not be compatible with Prawn or other versions of Rails
  • Loading branch information
Bruce Williams committed Jan 7, 2009
1 parent 269ce6f commit 48fd642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rtex/framework/rails.rb
Expand Up @@ -41,7 +41,7 @@ def self.included(base)

def render_with_rtex(options=nil, *args, &block)
result = render_without_rtex(options, *args, &block)
if result.is_a?(String) && @template.respond_to?(:rendered_with_rtex)
if result.is_a?(String) && @template.template_format.to_s == 'pdf'
options ||= {}
::RTeX::Document.new(result, options.merge(:processed => true)).to_pdf do |filename|
serve_file = Tempfile.new('rtex-pdf')
Expand Down

0 comments on commit 48fd642

Please sign in to comment.