lib/vestal_versions/version.rb in vestal_versions-1.0.1 vs lib/vestal_versions/version.rb in vestal_versions-1.0.2
- old
+ new
@@ -4,12 +4,9 @@
include Comparable
# Associate polymorphically with the parent record.
belongs_to :versioned, :polymorphic => true
- # Order versions by number, ascending by default.
- default_scope :order => "#{table_name}.number ASC"
-
# ActiveRecord::Base#changes is an existing method, so before serializing the +changes+ column,
# the existing +changes+ method is undefined. The overridden +changes+ method pertained to
# dirty attributes, but will not affect the partial updates functionality as that's based on
# an underlying +changed_attributes+ method, not +changes+ itself.
undef_method :changes