From 6a0c9aa8198c5edf6f031d4a2a0668262a892898 Mon Sep 17 00:00:00 2001 From: Ben Atkins Date: Tue, 22 Apr 2014 19:33:53 -0400 Subject: [PATCH] Remove commented line [ci skip] --- lib/paper_trail/has_paper_trail.rb | 2 -- spec/models/widget_spec.rb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/paper_trail/has_paper_trail.rb b/lib/paper_trail/has_paper_trail.rb index 3b654c50..5e724063 100644 --- a/lib/paper_trail/has_paper_trail.rb +++ b/lib/paper_trail/has_paper_trail.rb @@ -269,8 +269,6 @@ module PaperTrail def record_update if paper_trail_switched_on? && changed_notably? - # reset_timestamp_attrs_for_update_if_needed! - object_attrs = object_attrs_for_paper_trail(item_before_change) data = { :event => paper_trail_event || 'update', diff --git a/spec/models/widget_spec.rb b/spec/models/widget_spec.rb index a46350fb..d4732d91 100644 --- a/spec/models/widget_spec.rb +++ b/spec/models/widget_spec.rb @@ -29,7 +29,7 @@ describe Widget do subject { widget.versions.last.reify } it "should reset the value for the timestamp attrs for update so that value gets updated properly" do - expect { subject.save }.to change(subject, :updated_at) + expect { subject.save! }.to change(subject, :updated_at) end end end