Allow exceptions processing node and segment requests to propagate and
[rails.git] / app / models / node.rb
index 230c83882cf12fee4ba8d23e5477cdc0e40729bc..7e78aaf592acfab37a89a9c20bbc084ea3b28ef5 100644 (file)
@@ -68,18 +68,12 @@ class Node < ActiveRecord::Base
     return node
   end
 
-  def save_with_history
-    begin
-      Node.transaction do
-        self.timestamp = Time.now
-        self.save!
-        old_node = OldNode.from_node(self)
-        old_node.save!
-      end
-
-      return true
-    rescue
-      return nil
+  def save_with_history!
+    Node.transaction do
+      self.timestamp = Time.now
+      self.save!
+      old_node = OldNode.from_node(self)
+      old_node.save!
     end
   end