diff --git a/blamer.gemspec b/blamer.gemspec index 05bcc93..672738f 100644 --- a/blamer.gemspec +++ b/blamer.gemspec @@ -3,7 +3,7 @@ $:.unshift lib unless $:.include?(lib) Gem::Specification.new do |s| s.name = 'blamer' - s.version = '4.1.0' + s.version = '4.1.1' s.authors = ['Keith Morrison'] s.email = 'keithm@infused.org' s.homepage = 'http://github.com/infused/blame' diff --git a/lib/blamer/userstamp.rb b/lib/blamer/userstamp.rb index 793a6b7..089ceb0 100644 --- a/lib/blamer/userstamp.rb +++ b/lib/blamer/userstamp.rb @@ -36,7 +36,7 @@ def _create_record(*args) end def _update_record(*args) - if record_userstamps && changed? + if record_userstamps && saved_changes? self[updated_userstamp_column] = userstamp_object_or_default if respond_to?(updated_userstamp_column) end