]> git.cworth.org Git - sup/blobdiff - lib/sup/message-chunks.rb
bugfix: save_yaml_object not using File.stat correctly
[sup] / lib / sup / message-chunks.rb
index 0606395052f4d7a4a467638da170019271f0df4c..ba8b84641f294d3820896ddb53f06dd2169c76b9 100644 (file)
@@ -126,7 +126,7 @@ EOS
       path = write_to_disk
       ret = HookManager.run "mime-view", :content_type => @content_type,
                                          :filename => path
-      view_default! path unless ret
+      ret || view_default!(path)
     end
 
     def write_to_disk