aboutsummaryrefslogtreecommitdiffstats
path: root/lib/acts_as_versioned.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/acts_as_versioned.rb')
-rw-r--r--lib/acts_as_versioned.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/acts_as_versioned.rb b/lib/acts_as_versioned.rb
index 4be13aac3..baf7d9e74 100644
--- a/lib/acts_as_versioned.rb
+++ b/lib/acts_as_versioned.rb
@@ -355,7 +355,7 @@ module ActiveRecord #:nodoc:
end
def altered?
- self.track_altered_attributes ? (self.version_if_changed.map(&:to_s) - changed).length > 0 : changed?
+ self.track_altered_attributes ? (self.version_if_changed.map(&:to_s) - self.changed).length == 0 : changed?
end
# Clones a model. Used when saving a new version or reverting a model's version.