Skip to content

Commit 0086ee2

Browse files
committed
Update CHANGELOG regarding #889
1 parent 6e34dbe commit 0086ee2

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/).
2424

2525
### Fixed
2626

27+
- [#889](https://github.com/airblade/paper_trail/pull/889) -
28+
Fix warning message in instances when a version can't be persisted due to validation errors.
2729
- [#868](https://github.com/airblade/paper_trail/pull/868) -
2830
Fix usage of find_by_id when primary key is not id, affecting reifying certain records.
2931

lib/paper_trail/record_trail.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,8 @@ def habtm_assoc_ids(habtm_assoc)
421421

422422
def log_version_errors(version, action)
423423
version.logger.warn(
424-
"Unable to create version for #{action} of #{@record.class.name}#" +
425-
"#{@record.id}: " +
426-
version.errors.full_messages.join(", ")
424+
"Unable to create version for #{action} of #{@record.class.name}" +
425+
"##{@record.id}: " + version.errors.full_messages.join(", ")
427426
)
428427
end
429428

0 commit comments

Comments
 (0)