<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,11 +8,11 @@ module PdfHelper
   end
   
   def render_with_princely(options = nil, *args, &amp;block)
-    if options.nil? or options.is_a?(Symbol) or options.is_a?(String) or (options.is_a?(Hash) and options[:pdf].nil?) then
-      render_without_princely(options, *args, &amp;block)
-    else
+    if options.is_a?(Hash) &amp;&amp; options.has_key?(:pdf)
       options[:name] ||= options.delete(:pdf)
-      make_and_send_pdf(options.delete(:name), options)
+      make_and_send_pdf(options.delete(:name), options)      
+    else
+      render_without_princely(options, *args, &amp;block)
     end
   end  
     </diff>
      <filename>lib/pdf_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9359917c96caccfdd515eae03076566a70b34b66</id>
    </parent>
  </parents>
  <author>
    <name>hardbap</name>
    <email>hardbap@gmail.com</email>
  </author>
  <url>http://github.com/mbleigh/princely/commit/b22561b3b7c127926e73a76d9772c4aa7729f9a3</url>
  <id>b22561b3b7c127926e73a76d9772c4aa7729f9a3</id>
  <committed-date>2009-04-04T17:36:24-07:00</committed-date>
  <authored-date>2009-04-02T19:06:22-07:00</authored-date>
  <message>let's clean up the logic in #render_with_princely.

Signed-off-by: Michael Bleigh &lt;michael@intridea.com&gt;</message>
  <tree>dd6eed3e621ef63b5ed09b0032e3b4a61a99859f</tree>
  <committer>
    <name>Michael Bleigh</name>
    <email>michael@intridea.com</email>
  </committer>
</commit>
