Modified: trunk/vendor/plugins/versioning/lib/versioning.rb (3407 => 3408)
--- trunk/vendor/plugins/versioning/lib/versioning.rb 2013-02-07 01:52:40 UTC (rev 3407)
+++ trunk/vendor/plugins/versioning/lib/versioning.rb 2013-02-07 08:56:55 UTC (rev 3408)
@@ -23,7 +23,7 @@
class_eval do
- has_many :versions, :class_name => self.version_class.name
+ has_many :versions, :class_name => self.version_class.name, :dependent => :destroy
def find_version(v)
match = self.version_class.find(:first, :conditions => ["#{self.versioned_resource_column} = ? AND version = ?", id, v])