Skip to content

Commit

Permalink
Use #reset instead of #load_target
Browse files Browse the repository at this point in the history
  • Loading branch information
sedx authored and jaredbeck committed May 20, 2016
1 parent 4ad6254 commit 0eba14d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paper_trail/has_paper_trail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def record_destroy
log_version_errors(version, :destroy)
else
send("#{self.class.version_association_name}=", version)
send(self.class.versions_association_name).send :load_target
send(self.class.versions_association_name).reset
update_transaction_id(version)
save_associations(version)
end
Expand Down

0 comments on commit 0eba14d

Please sign in to comment.