Remove commented line [ci skip]
This commit is contained in:
parent
eb36d1a9e0
commit
6a0c9aa819
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue