lib/princely/pdf_helper.rb in drnic-princely-1.1.1 vs lib/princely/pdf_helper.rb in drnic-princely-1.1.2

- old
+ new

@@ -21,10 +21,10 @@ def make_pdf(options = {}) options[:stylesheets] ||= [] options[:layout] ||= false options[:template] ||= File.join(controller_path,action_name) - prince = Prince.new() + prince = Princely.new() # Sets style sheets on PDF renderer prince.add_style_sheets(*options[:stylesheets].collect{|style| stylesheet_file_path(style)}) html_string = render_to_string(:template => options[:template], :layout => options[:layout])