Remove commented line [ci skip]

This commit is contained in:
Ben Atkins 2014-04-22 19:33:53 -04:00
parent eb36d1a9e0
commit 6a0c9aa819
2 changed files with 1 additions and 3 deletions

View File

@ -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',

View File

@ -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